From b8cd708ba5f638b72e26b2976796313134035e28 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 3 Mar 2004 09:15:12 +0000 Subject: [PATCH] Update to bool in dircmd.c git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1107 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dircmd.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index 46116ca56d..9dc0abec61 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -122,7 +122,8 @@ void *connection_request(void *arg) { BSOCK *bs = (BSOCK *)arg; JCR *jcr; - int i, found, quit; + int i; + bool found, quit; int bnet_stat = 0; char name[MAX_NAME_LENGTH]; @@ -168,20 +169,20 @@ void *connection_request(void *arg) break; /* connection terminated */ } Dmsg1(9, "msg); - found = FALSE; + found = false; for (i=0; cmds[i].cmd; i++) { if (strncmp(cmds[i].cmd, bs->msg, strlen(cmds[i].cmd)) == 0) { if (!cmds[i].func(jcr)) { /* do command */ - quit = TRUE; /* error, get out */ + quit = true; /* error, get out */ Dmsg1(90, "Command %s requsts quit\n", cmds[i].cmd); } - found = TRUE; /* indicate command found */ + found = true; /* indicate command found */ break; } } if (!found) { /* command not found */ bnet_fsend(bs, derrmsg); - quit = TRUE; + quit = true; break; } } -- 2.39.5