summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-24 19:56:24 +0000
committerJeremy Allison <jra@samba.org>1998-03-24 19:56:24 +0000
commit6eca266fe5a3368ab207bdf8729421b57f47f22e (patch)
tree901c3ca8a168ed019489138929ca9e5f7554b0c4 /source/lib
parent051ec104feaa48b9d147cc5479857c10915bdd26 (diff)
downloadsamba-6eca266fe5a3368ab207bdf8729421b57f47f22e.tar.gz
samba-6eca266fe5a3368ab207bdf8729421b57f47f22e.tar.xz
samba-6eca266fe5a3368ab207bdf8729421b57f47f22e.zip
Fixed 'unused variable' warnings found with gcc -Wall -Werror.
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 46fda4ae8b9..d39fc16a36a 100644
--- a/source/lib/util.c
+++ b/source/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)