diff options
-rw-r--r-- | source3/nsswitch/libwbclient/wbc_util.c | 4 | ||||
-rw-r--r-- | source3/nsswitch/libwbclient/wbclient.h | 2 | ||||
-rw-r--r-- | source3/nsswitch/wbinfo.c | 2 |
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)) { |