diff options
author | Stefan Metzmacher <metze@samba.org> | 2005-01-31 16:01:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:09:25 -0500 |
commit | 2cb711f39f80adbe7375c809c57106ac8e71d5d8 (patch) | |
tree | d3cde84deb6253689dec53750ba5e26aa34a4bb8 /source4/lib | |
parent | 73a0b6ea476ee19bb814c3257daca7c116d42872 (diff) | |
download | samba-2cb711f39f80adbe7375c809c57106ac8e71d5d8.tar.gz samba-2cb711f39f80adbe7375c809c57106ac8e71d5d8.tar.bz2 samba-2cb711f39f80adbe7375c809c57106ac8e71d5d8.zip |
r5135: I prepare a clean up in includes.h
metze
(This used to be commit 670e088e94468a5311353dbbaa7e34d200999313)
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/cmdline/popt_common.c | 3 | ||||
-rw-r--r-- | source4/lib/cmdline/readline.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/cmdline/popt_common.c b/source4/lib/cmdline/popt_common.c index e440611ee4..0445877e7a 100644 --- a/source4/lib/cmdline/popt_common.c +++ b/source4/lib/cmdline/popt_common.c @@ -23,6 +23,7 @@ #include "includes.h" #include "version.h" #include "dynconfig.h" +#include "system/filesys.h" #include "system/passwd.h" #include "lib/cmdline/popt_common.h" @@ -403,7 +404,7 @@ static void popt_common_credentials_callback(poptContext con, snprintf(cmdline_auth_info.username, sizeof(cmdline_auth_info.username), "%s$", lp_netbios_name()); pstrcpy(cmdline_auth_info.password,opt_password); - SAFE_FREE(opt_password); + free(opt_password); cmdline_auth_info.got_pass = True; pstrcpy(cmdline_auth_info.domain, lp_workgroup()); diff --git a/source4/lib/cmdline/readline.c b/source4/lib/cmdline/readline.c index 83d476b0d1..8836759f70 100644 --- a/source4/lib/cmdline/readline.c +++ b/source4/lib/cmdline/readline.c @@ -21,6 +21,8 @@ #include "includes.h" +#include <unistd.h> + #ifdef HAVE_LIBREADLINE # ifdef HAVE_READLINE_READLINE_H # include <readline/readline.h> |