summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-20 22:17:39 +0200
committerMichael Adam <obnox@samba.org>2008-04-20 22:29:36 +0200
commit8caaf0dc4331370793d7f79839ed75bb149c9e93 (patch)
tree58f267f5ea1ad1cdcfcc06a1604dd39a235fa9f6 /source3/nsswitch
parentd7da0f57fa4564647637e025fd2f4c7ebd2e7293 (diff)
downloadsamba-8caaf0dc4331370793d7f79839ed75bb149c9e93.tar.gz
samba-8caaf0dc4331370793d7f79839ed75bb149c9e93.tar.bz2
samba-8caaf0dc4331370793d7f79839ed75bb149c9e93.zip
libwbclient: change wbcResolveWinsByIP() to take char ** instead of const char **
Fix a compile warning. This seems the right thing since the data is created by talloc_strdup... Michael (This used to be commit f81da8e8ed8e2d75c77bd8b5e7fdd7c53bab7e49)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/libwbclient/wbc_util.c4
-rw-r--r--source3/nsswitch/libwbclient/wbclient.h2
-rw-r--r--source3/nsswitch/wbinfo.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/nsswitch/libwbclient/wbc_util.c b/source3/nsswitch/libwbclient/wbc_util.c
index 69cad380da..a1b6626bd3 100644
--- a/source3/nsswitch/libwbclient/wbc_util.c
+++ b/source3/nsswitch/libwbclient/wbc_util.c
@@ -237,12 +237,12 @@ wbcErr wbcResolveWinsByName(const char *name, char **ip)
* @return #wbcErr
*
**/
-wbcErr wbcResolveWinsByIP(const char *ip, const char **name)
+wbcErr wbcResolveWinsByIP(const char *ip, char **name)
{
struct winbindd_request request;
struct winbindd_response response;
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
- const char *name_str;
+ char *name_str;
ZERO_STRUCT(request);
ZERO_STRUCT(response);
diff --git a/source3/nsswitch/libwbclient/wbclient.h b/source3/nsswitch/libwbclient/wbclient.h
index a444c91da4..d73ea297a3 100644
--- a/source3/nsswitch/libwbclient/wbclient.h
+++ b/source3/nsswitch/libwbclient/wbclient.h
@@ -426,7 +426,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
* Resolve functions
*/
wbcErr wbcResolveWinsByName(const char *name, char **ip);
-wbcErr wbcResolveWinsByIP(const char *ip, const char **name);
+wbcErr wbcResolveWinsByIP(const char *ip, char **name);
/*
* Trusted domain functions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 00d772a74c..8aa4e5f15f 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -321,7 +321,7 @@ static bool wbinfo_wins_byname(const char *name)
static bool wbinfo_wins_byip(const char *ip)
{
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
- const char *name = NULL;
+ char *name = NULL;
wbc_status = wbcResolveWinsByIP(ip, &name);
if (!WBC_ERROR_IS_OK(wbc_status)) {