aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-14 16:22:39 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-07-14 16:22:39 +0200
commitcf4a7d9f3882c28292b5e00a314d4cbd36a90002 (patch)
tree585dc7fea027b7e80ea4cc371cae43bc68d4f34b
parent39baf09b58d626d46be3da79a3ab4f41deb37426 (diff)
downloadmig-cf4a7d9f3882c28292b5e00a314d4cbd36a90002.tar.gz
mig-cf4a7d9f3882c28292b5e00a314d4cbd36a90002.tar.bz2
mig-cf4a7d9f3882c28292b5e00a314d4cbd36a90002.zip
Fix warnings
-rw-r--r--server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.c b/server.c
index 973e1f7..81147b5 100644
--- a/server.c
+++ b/server.c
@@ -582,7 +582,6 @@ static const char *
InArgMsgField(const argument_t *arg)
{
static char buffer[100];
- const ipc_type_t *it = arg->argType;
/*
* Inside the kernel, the request and reply port fields
@@ -1306,7 +1305,7 @@ WritePackArg(FILE *file, const argument_t *arg)
fprintf(file, "\t\t\tmach_port_name_t tmp_port_name = %sP[i - 1];\n", arg->argVarName);
fprintf(file, "\t\t\t/* Clear the whole message with zeros. */\n");
fprintf(file, "\t\t\tOutP->%s[i - 1].kernel_port_do_not_use = 0;\n", arg->argMsgField);
- fprintf(file, "\t\t\tOutP->%s[i - 1].name = tmp_port_name;\n", arg->argMsgField, arg->argVarName);
+ fprintf(file, "\t\t\tOutP->%s[i - 1].name = tmp_port_name;\n", arg->argMsgField);
fprintf(file, "\t\t}\n");
}
fprintf(file, "\t}\n");