diff options
author | dholland <dholland@NetBSD.org> | 2008-01-28 03:39:30 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-28 03:39:30 +0000 |
commit | 32e97ccd7409faa7c0028480f30414a8aa0d1421 (patch) | |
tree | b5c3684808fd1ce9002cdf547760ab4e3eedd2ef /larn/extern.h | |
parent | 4c39d3d5d3a9a029eecd375d4c55d91ed234cc9c (diff) | |
download | bsdgames-darwin-32e97ccd7409faa7c0028480f30414a8aa0d1421.tar.gz bsdgames-darwin-32e97ccd7409faa7c0028480f30414a8aa0d1421.tar.zst bsdgames-darwin-32e97ccd7409faa7c0028480f30414a8aa0d1421.zip |
Add gcc printf format checking, and fix the abundant problems this revealed.
(It appears that someone sometime thought that you use %d to print a long.)
Diffstat (limited to 'larn/extern.h')
-rw-r--r-- | larn/extern.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/larn/extern.h b/larn/extern.h index fe3af458..b32ccaa4 100644 --- a/larn/extern.h +++ b/larn/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.5 2006/05/11 10:23:24 mrg Exp $ */ +/* $NetBSD: extern.h,v 1.6 2008/01/28 03:39:30 dholland Exp $ */ /* * Copyright (c) 1997 Christos Zoulas. All rights reserved. @@ -131,7 +131,7 @@ int lgetchar(void); void scbr(void); void sncbr(void); void newgame(void); -void lprintf(const char *, ...); +void lprintf(const char *, ...) __attribute__((__format__(__printf__, 1, 2))); void lprint(long); void lwrite(char *, int); long lgetc(void); |