diff options
author | Jeremy Allison <jra@samba.org> | 1998-03-24 19:56:24 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-03-24 19:56:24 +0000 |
commit | e2060b58e0b032148bfed595b033262c799f1c55 (patch) | |
tree | e17ccc9443c26a9ed1c88c4d367e4d4ca23ddba7 | |
parent | 1a264998cac04221c325e61cc7d954b08ce2ac59 (diff) | |
download | samba-e2060b58e0b032148bfed595b033262c799f1c55.tar.gz samba-e2060b58e0b032148bfed595b033262c799f1c55.tar.bz2 samba-e2060b58e0b032148bfed595b033262c799f1c55.zip |
Fixed 'unused variable' warnings found with gcc -Wall -Werror.
Jeremy.
(This used to be commit 6eca266fe5a3368ab207bdf8729421b57f47f22e)
-rw-r--r-- | source3/lib/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index 46fda4ae8b..d39fc16a36 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -3862,7 +3862,6 @@ static char *automount_lookup(char *user_name) char *automount_server(char *user_name) { static pstring server_name; - int home_server_len; /* use the local machine name as the default */ /* this will be the default if AUTOMOUNT is not used or fails */ @@ -3872,6 +3871,7 @@ char *automount_server(char *user_name) if (lp_nis_home_map()) { + int home_server_len; char *automount_value = automount_lookup(user_name); home_server_len = strcspn(automount_value,":"); DEBUG(5, ("NIS lookup succeeded. Home server length: %d\n",home_server_len)); @@ -3897,7 +3897,6 @@ char *automount_server(char *user_name) char *automount_path(char *user_name) { static pstring server_path; - char *home_path_start; /* use the passwd entry as the default */ /* this will be the default if AUTOMOUNT is not used or fails */ @@ -3908,6 +3907,7 @@ char *automount_path(char *user_name) if (lp_nis_home_map()) { + char *home_path_start; char *automount_value = automount_lookup(user_name); home_path_start = strchr(automount_value,':'); if (home_path_start != NULL) |