]> gitweb.ps.run Git - ps-cgit/commitdiff
fix errors in printf-style format strings
authorMark Lodato <lodatom@gmail.com>
Sat, 4 Sep 2010 15:30:18 +0000 (11:30 -0400)
committerMark Lodato <lodatom@gmail.com>
Sat, 4 Sep 2010 15:35:38 +0000 (11:35 -0400)
There were many places where the arguments to a printf-like function did
not match the format string.  Mostly, these were a missing 'l' flag, but
there were three exceptions:

- In ui-stats.c, a size_t argument must be printed.  C99 has the "%zu"
  flag for this purpose, but not all compilers support this.  Therefore,
  we mimic what git does - use a NO_C99_FORMAT Makefile variable.

- In ui-stats.c, cgit_print_error() was called with a pointer instead of
  a character.

- In ui-log.c, the "columns" argument was never used.

Signed-off-by: Mark Lodato <lodatom@gmail.com>

No differences found