From fc186a1d87ff6c58db228740cc9b04da164c7af1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 14:18:09 +0200 Subject: Fix sscanf format for c99 * utils/rpctrace.c (parse_msgid_list): Use %ms instead of %as in sscanf format. --- utils/rpctrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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); -- cgit v1.2.3