diff options
author | Cyril Brulebois <kibi@debian.org> | 2011-02-18 21:17:12 +0100 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-18 12:55:04 -0800 |
commit | 8607b9de7b331f7a97e623b1490194324a8b9a4b (patch) | |
tree | 3da69672f6a50d3e63ad65966e6e912301d87b7c | |
parent | 07c1f9c135039606c63b88d51b93532199897ceb (diff) |
Silence gcc warning.
Fix the build with CFLAGS="-Wall -Werror":
| CC FSGetErrorText.o
| cc1: warnings being treated as errors
| FSGetErrorText.c: In function ‘CheckErrorMessage’:
| FSGetErrorText.c:43: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’
An int is likely to be sufficient for this buffer's size…
Signed-off-by: Cyril Brulebois <kibi@debian.org>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | test/FSGetErrorText.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/FSGetErrorText.c b/test/FSGetErrorText.c index 31523c6..f9a88d2 100644 --- a/test/FSGetErrorText.c +++ b/test/FSGetErrorText.c @@ -40,7 +40,7 @@ CheckErrorMessage(FSServer *srv, int code, const char *codestr) if (!FSGetErrorText(srv, code, buf, sizeof(buf))) { fprintf(stderr, "FSGetErrorText(srv, %s (%d), buf, %d) failed", - codestr, code, sizeof(buf)); + codestr, code, (int) sizeof(buf)); return 0; } |