changeset 905:c125055b1937

acap: Correct format string in acap_any_literal_from_str() Use %z format string for size_t variables. Flagged by gcc. # gcc --version gcc (Debian 4.8.1-8) 4.8.1 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # make warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ [-Wformat=] Signed-off-by: Simon Horman <horms@verge.net.au>
author Simon Horman <horms@verge.net.au>
date Wed, 07 Aug 2013 14:11:16 +0900
parents 759b63c3ead1
children 794823108269
files perdition/acap.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/perdition/acap.c	Wed Aug 07 14:09:03 2013 +0900
+++ b/perdition/acap.c	Wed Aug 07 14:11:16 2013 +0900
@@ -77,7 +77,7 @@
 		return out;
 	}
 
-	sprintf(out.a, "{%d%s}", n, extra);
+	sprintf(out.a, "{%zd%s}", n, extra);
 
 	out.b = str;