diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 17:07:41 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 18:37:07 +0100 |
commit | cf4bcc3f1435eafa3ed8b5fadfa9698033d1e2df (patch) | |
tree | 34b2cdc750ce7a51b7ee2a58f2d076e99d294f52 /server.c | |
parent | 1724ae7c21a6840a402a685ceea7f3366788a516 (diff) | |
download | mig-cf4bcc3f1435eafa3ed8b5fadfa9698033d1e2df.tar.gz mig-cf4bcc3f1435eafa3ed8b5fadfa9698033d1e2df.tar.bz2 mig-cf4bcc3f1435eafa3ed8b5fadfa9698033d1e2df.zip |
Also add const qualifiers on server side
Although in practice the buffers can be modified since they are from the
message, it leads to missing const where it would otherwise make sense.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -268,8 +268,9 @@ WriteLocalPtrDecl(FILE *file, const argument_t *arg) static void WriteServerArgDecl(FILE *file, const argument_t *arg) { - fprintf(file, "%s %s%s", - arg->argType->itTransType, + const char *qualif = ServerVarQualifier(arg); + fprintf(file, "%s%s %s%s", + qualif, arg->argType->itTransType, arg->argByReferenceServer ? "*" : "", arg->argVarName); } |