static int setbwlimit_cmd(UAContext *ua, const char *cmd)
{
int action = -1;
- CLIENT *client=NULL;
+ CLIENT *client = NULL;
char Job[MAX_NAME_LENGTH];
*Job=0;
- int64_t limit=-1;
- JCR *jcr=NULL;
+ int64_t limit = -1;
+ JCR *jcr = NULL;
int i;
const char *lst_all[] = { "job", "jobid", "jobname", "client", NULL };
i = find_arg_with_value(ua, "limit");
if (i >= 0) {
- limit = atoi(ua->argv[i]) * 1024;
+ limit = atoi(ua->argv[i]) * 1024L;
}
if (limit < 0) {
if (!get_pint(ua, _("Enter new bandwidth limit kb/s: "))) {
return 1;
}
- limit = ua->pint32_val * 1024; /* kb/s */
+ limit = ua->pint32_val * 1024L; /* kb/s */
}
const char *lst[] = { "job", "jobid", "jobname", NULL };