summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/cmdline/popt_common.c3
-rw-r--r--source4/lib/cmdline/readline.c2
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>