Skip to content

Commit

Permalink
mxqsub: Remove unused parameter flags from mxq_submit_task
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed May 5, 2022
1 parent de3553c commit 9328af6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mxqsub.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ static int get_active_groups_for_user(struct mx_mysql *mysql, char *username)
return count;
}

static int mxq_submit_task(struct mx_mysql *mysql, struct mxq_job *j, int flags, uint64_t group_id)
static int mxq_submit_task(struct mx_mysql *mysql, struct mxq_job *j, uint64_t group_id)
{
int res;
struct mxq_group *g;
Expand Down Expand Up @@ -724,8 +724,6 @@ int main(int argc, char *argv[])
_mx_cleanup_free_ char *whitelist = NULL;
_mx_cleanup_free_ char *tags = NULL;

int flags = 0;

struct mxq_job job;
struct mxq_group group;

Expand Down Expand Up @@ -1187,7 +1185,7 @@ int main(int argc, char *argv[])

mx_log_info("MySQL: Connection to database established.");

res = mxq_submit_task(mysql, &job, flags, arg_groupid);
res = mxq_submit_task(mysql, &job, arg_groupid);

mx_mysql_finish(&mysql);

Expand Down

0 comments on commit 9328af6

Please sign in to comment.