summaryrefslogtreecommitdiff
path: root/source3/lib/replace/getpass.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-15 11:02:24 +0200
committerStefan Metzmacher <metze@samba.org>2007-10-15 13:20:41 +0200
commitc6a17c85e10c2824dd3877e0df13a8e997b76b85 (patch)
tree4824f2ddbf1b486a81a3a8972f6490b408ed7a01 /source3/lib/replace/getpass.c
parenta09bc48a1db9dcf4cb844dc8e2075035031773e1 (diff)
downloadsamba-c6a17c85e10c2824dd3877e0df13a8e997b76b85.tar.gz
samba-c6a17c85e10c2824dd3877e0df13a8e997b76b85.tar.bz2
samba-c6a17c85e10c2824dd3877e0df13a8e997b76b85.zip
fix the compilation of getpass.c and it's configure test
metze (This used to be commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
Diffstat (limited to 'source3/lib/replace/getpass.c')
-rw-r--r--source3/lib/replace/getpass.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/lib/replace/getpass.c b/source3/lib/replace/getpass.c
index dace5fbb8a..4b21849089 100644
--- a/source3/lib/replace/getpass.c
+++ b/source3/lib/replace/getpass.c
@@ -49,8 +49,6 @@ typedef int sig_atomic_t;
#define SIGNAL_CAST (RETSIGTYPE (*)(int))
#endif
-#ifdef REPLACE_GETPASS
-
#ifdef SYSV_TERMIO
/* SYSTEM V TERMIO HANDLING */
@@ -131,10 +129,9 @@ static void catch_signal(int signum,void (*handler)(int ))
sigemptyset(&act.sa_mask);
sigaddset(&act.sa_mask,signum);
sigaction(signum,&act,&oldact);
- return oldact.sa_handler;
#else /* !HAVE_SIGACTION */
/* FIXME: need to handle sigvec and systems with broken signal() */
- return signal(signum, handler);
+ signal(signum, handler);
#endif
}
@@ -231,8 +228,3 @@ char *getsmbpass(const char *prompt)
}
return buf;
}
-
-#else
- void getsmbpasswd_dummy(void);
- void getsmbpasswd_dummy(void) {;}
-#endif