]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/ua_cmds.c
Pull compiler warning cleanup code + other from master
[bacula/bacula] / bacula / src / dird / ua_cmds.c
index 3dd161a259989947e78ee97b5893e2ae4886d183..2ce9df699588e37de9bb91d83edbcac600aafdbc 100644 (file)
@@ -280,7 +280,6 @@ static int add_cmd(UAContext *ua, const char *cmd)
    POOL_DBR pr;
    MEDIA_DBR mr;
    int num, i, max, startnum;
-   int first_id = 0;
    char name[MAX_NAME_LENGTH];
    STORE *store;
    int Slot = 0, InChanger = 0;
@@ -406,9 +405,6 @@ static int add_cmd(UAContext *ua, const char *cmd)
          ua->error_msg("%s", db_strerror(ua->db));
          return 1;
       }
-      if (i == startnum) {
-         first_id = mr.PoolId;
-      }
    }
    pr.NumVols += num;
    Dmsg0(200, "Update pool record.\n");