about summary refs log tree commit diff
path: root/cache.c
diff options
context:
space:
mode:
authorMark Lodato <lodatom@gmail.com>2010-09-04 11:30:18 -0400
committerMark Lodato <lodatom@gmail.com>2010-09-04 11:35:38 -0400
commite4ddc8f72b5a7d8c55a6c2042c7b7f945ba4b1a2 (patch)
tree2ade0bb45e15ad5466ca4d3433201477f0c9214e /cache.c
parentuse __attribute__ to catch printf format mistakes (diff)
downloadcgit-pink-e4ddc8f72b5a7d8c55a6c2042c7b7f945ba4b1a2.tar.gz
cgit-pink-e4ddc8f72b5a7d8c55a6c2042c7b7f945ba4b1a2.zip
fix errors in printf-style format strings
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>
Diffstat (limited to 'cache.c')
0 files changed, 0 insertions, 0 deletions
2018-04-03Indicate all Tiny Desk ConcertsJune McEnroe 2018-04-03Add FloristJune McEnroe 2018-04-03Add CHVRCHES tiny desk concertJune McEnroe 2018-04-03Add AuroraJune McEnroe 2018-04-03Add AtmosphereJune McEnroe I know I've already put Joy Division in here. But this is also Trainspotting and I managed to miss / not appreciate this one on my first go through JD. 2018-04-03Add Born SlippyJune McEnroe I watched Trainspotting last night. 2018-04-03Add I Can Tell You About PainJune McEnroe 2018-04-03Reverse new music orderJune McEnroe 2018-04-03Add FAUVE, CocoRosieJune McEnroe 2018-04-03Add House of LeavesJune McEnroe 2018-04-03Add ChromaticsJune McEnroe 2018-04-03Add those new Arcade Fire singlesJune McEnroe 2018-04-03Add SermonJune McEnroe 2018-04-03Add Pools of LightJune McEnroe 2018-04-03Add SteroidsJune McEnroe 2018-04-03Add A Common TruthJune McEnroe 2018-04-03Add new Colin Stetson albumJune McEnroe 2018-04-03Add ForgetJune McEnroe 2018-04-03Add ArcaJune McEnroe 2018-04-03Add new DMST and Joni VoidJune McEnroe 2018-04-03Add The Body LoversJune McEnroe 2018-04-03Add some albums from recentlyJune McEnroe 2018-04-03Add Saltland Light of MercyJune McEnroe 2018-04-03Add Jessica Moss GlaciersJune McEnroe 2018-04-03Add BNNY RBBTJune McEnroe 2018-04-03Add DepthsJune McEnroe 2018-04-03Add new Saltland previewJune McEnroe 2018-04-03Add BenjiJune McEnroe 2018-04-03Add Mouth MoodsJune McEnroe 2018-04-03Add Those Who Walk AwayJune McEnroe 2018-04-03Add Some TunesJune McEnroe 2018-04-03Add Pas pire popJune McEnroe 2018-04-03Add I Give You PowerJune McEnroe 2018-04-03Add Jenny GoGoJune McEnroe 2018-04-03Add KKB Fish BowlJune McEnroe 2018-04-03Add new Avec le soleil album previewJune McEnroe 2018-04-03Add Julien Baker as recent new musicJune McEnroe 2018-04-03Add recent new musicJune McEnroe