[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Confuse-devel] [PATCH 4/5] examples: match format to data type width in
From: |
Carlo Marcelo Arenas Belon |
Subject: |
[Confuse-devel] [PATCH 4/5] examples: match format to data type width in simple.c |
Date: |
Sun, 30 Nov 2008 13:55:57 -0800 |
avoids the following warning from printing "debug" simple variable
simple.c:42: warning: format ‘%d’ expects type ‘int’, but argument 2 has type
‘long int’
Signed-off-by: Carlo Marcelo Arenas Belon <address@hidden>
---
examples/simple.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/examples/simple.c b/examples/simple.c
index 2d8ee59..9f47ec7 100644
--- a/examples/simple.c
+++ b/examples/simple.c
@@ -39,7 +39,7 @@ int main(void)
printf("verbose: %s\n", verbose ? "true" : "false");
printf("server: %s\n", server);
printf("username: %s\n", username);
- printf("debug: %d\n", debug);
+ printf("debug: %ld\n", debug);
printf("delay: %G\n", delay);
printf("setting username to 'foo'\n");