1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r4864: Remove unused var.

Jeremy.
This commit is contained in:
Jeremy Allison
2005-01-20 01:19:57 +00:00
committed by Gerald (Jerry) Carter
parent 504ea4ac68
commit 9fd5d633e6

View File

@ -40,7 +40,7 @@ static BOOL read_target_host(const char *mapfile, pstring targethost)
{
XFILE *f;
pstring buf;
char *s, *space = buf;
char *space = buf;
BOOL found = False;
f = x_fopen(mapfile, O_RDONLY, 0);
@ -53,7 +53,7 @@ static BOOL read_target_host(const char *mapfile, pstring targethost)
DEBUG(10, ("Scanning mapfile [%s]\n", mapfile));
while ((s=x_fgets(buf, sizeof(buf), f)) != NULL) {
while (x_fgets(buf, sizeof(buf), f) != NULL) {
if ((strlen(buf) > 0) && (buf[strlen(buf)-1] == '\n'))
buf[strlen(buf)-1] = '\0';