summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2007-12-14 10:46:35 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:17 +0100
commitd8feba9faf8f135109e347b5bf5fa054df97a11a (patch)
tree9bf7bec574db8ad91ef725f34962ae8b8732fdda
parent45015eda2421253f858f0a4500a57c2855f9686c (diff)
downloadsamba-d8feba9faf8f135109e347b5bf5fa054df97a11a.tar.gz
samba-d8feba9faf8f135109e347b5bf5fa054df97a11a.tar.xz
samba-d8feba9faf8f135109e347b5bf5fa054df97a11a.zip
r26452: Janitorial: Remove a pstring.
(This used to be commit d1d95024788bc549f838c0393411fa98ddec04ec)
-rw-r--r--source4/lib/smbreadline/smbreadline.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/smbreadline/smbreadline.c b/source4/lib/smbreadline/smbreadline.c
index 2a72750efb8..e5cc3522e97 100644
--- a/source4/lib/smbreadline/smbreadline.c
+++ b/source4/lib/smbreadline/smbreadline.c
@@ -19,7 +19,6 @@
*/
#include "includes.h"
-#include "pstring.h"
#include "system/filesys.h"
#include "system/select.h"
#include "system/readline.h"
@@ -78,7 +77,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void)
char **(completion_fn)(const char *text, int start, int end))
{
fd_set fds;
- static pstring line;
+ static char line[1024];
struct timeval timeout;
int fd = STDIN_FILENO;
char *ret;
@@ -91,7 +90,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void)
FD_ZERO(&fds);
FD_SET(fd,&fds);
-
+
if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) {
ret = x_fgets(line, sizeof(line), x_stdin);
return ret;