summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 14:18:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 14:18:09 +0200
commitfc186a1d87ff6c58db228740cc9b04da164c7af1 (patch)
tree329bbb3eec70e7e46f4534b71a9cbbe5bcd2d133
parenta084d0985fc7fc08446998b9b171318b6d3b6592 (diff)
Fix sscanf format for c99
* utils/rpctrace.c (parse_msgid_list): Use %ms instead of %as in sscanf format.
-rw-r--r--utils/rpctrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index 281991ca..ef7ab536 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -152,7 +152,7 @@ parse_msgid_list (const char *filename)
++lineno;
if (buffer[0] == '#' || buffer[0] == '\0')
continue;
- if (sscanf (buffer, "%as %*u %as %*u %u %*u\n",
+ if (sscanf (buffer, "%ms %*u %ms %*u %u %*u\n",
&subsystem, &name, &msgid) != 3)
error (0, 0, "%s:%u: invalid format in RPC list file",
filename, lineno);