summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 11:53:01 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 12:09:23 +0100
commit1724ae7c21a6840a402a685ceea7f3366788a516 (patch)
tree86e957b86be0e30129acffe3b1fa90b9cbbe6fa9
parente9482b80272f673f625ac80d49ffea6b79fb6117 (diff)
Make dev_name_t also use const_dev_name_t
to avoid forcing the caller to respect the definite string size.
-rw-r--r--utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 505f434..5111e73 100644
--- a/utils.c
+++ b/utils.c
@@ -29,6 +29,7 @@
#include "write.h"
#include "utils.h"
#include "global.h"
+#include "cpu.h"
void
WriteImport(FILE *file, const_string_t filename)
@@ -160,6 +161,7 @@ UserVarQualifier(const argument_t *arg)
return "";
if (arg->argType->itIndefinite ||
+ arg->argType->itInName == MACH_MSG_TYPE_STRING_C ||
!strcmp(arg->argType->itUserType, "string_t"))
/* This is a pointer, so we have to use the const_foo type to
make const qualify the data, not the pointer.