summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-06-05 13:44:47 -0600
committerJens Axboe <axboe@kernel.dk>2018-06-05 13:44:47 -0600
commita43f4461d5716c4c46018dd45cecf0a896d05dbd (patch)
tree548657135b22a311fce670e1ffeb3a22b20732b4 /server.c
parent94a78d52c83ab998d0b4614e472338ab959bb224 (diff)
downloadfio-a43f4461d5716c4c46018dd45cecf0a896d05dbd.tar.gz
fio-a43f4461d5716c4c46018dd45cecf0a896d05dbd.tar.bz2
Fix variable shadowing
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'server.c')
-rw-r--r--server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server.c b/server.c
index 12c8d684..7e7ffedc 100644
--- a/server.c
+++ b/server.c
@@ -1594,7 +1594,7 @@ void fio_server_send_gs(struct group_run_stats *rs)
}
void fio_server_send_job_options(struct flist_head *opt_list,
- unsigned int groupid)
+ unsigned int gid)
{
struct cmd_job_option pdu;
struct flist_head *entry;
@@ -1609,12 +1609,12 @@ void fio_server_send_job_options(struct flist_head *opt_list,
p = flist_entry(entry, struct print_option, list);
memset(&pdu, 0, sizeof(pdu));
- if (groupid == -1U) {
+ if (gid == -1U) {
pdu.global = __cpu_to_le16(1);
pdu.groupid = 0;
} else {
pdu.global = 0;
- pdu.groupid = cpu_to_le32(groupid);
+ pdu.groupid = cpu_to_le32(gid);
}
len = strlen(p->name);
if (len >= sizeof(pdu.name)) {