CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2015/09/26 23:13:11

Modified files:
        games/hack     : hack.apply.c hack.eat.c hack.h hack.invent.c 
                         hack.lev.c hack.main.c hack.options.c 
                         hack.pager.c hack.potion.c hack.pri.c 
                         hack.rip.c hack.rumors.c hack.timeout.c 
                         hack.topl.c hack.tty.c 

Log message:
Annotate funcs with __attribute__((printf(...))) and clean up the fallout:
* lots of foo(str) --> foo("%s", str) transformations
* one totally insane foo(fmt, ap) --> vfoo(fmt, ap) conversion: how did
this ever work?
* prefer const char[] over char* for static format strings, as it lets
gcc check the format and eliminates an unnecessary pointer

ok beck@

Reply via email to