]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dircmd.c
Update configure to set x on logrotate
[bacula/bacula] / bacula / src / stored / dircmd.c
index 46116ca56d116cd7903344641dc2e92b00718f2e..f0b891e95b2360762e537ea1e2f90ed6ba62636b 100644 (file)
@@ -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, "<dird: %s\n", bs->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;
       }
    }
@@ -200,7 +201,7 @@ static int setdebug_cmd(JCR *jcr)
    int level, trace_flag;
 
    Dmsg1(10, "setdebug_cmd: %s", dir->msg);
-   if (sscanf(dir->msg, "setdebug=%d", &level, &trace_flag) != 2 || level < 0) {
+   if (sscanf(dir->msg, "setdebug=%d trace=%d", &level, &trace_flag) != 2 || level < 0) {
       bnet_fsend(dir, "3991 Bad setdebug command: %s\n", dir->msg);
       return 0;
    }