diff options
author | kris <kris@FreeBSD.org> | 2001-08-19 08:19:37 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2001-08-19 08:19:37 +0000 |
commit | 5e75b336b9d01ea2b70ff9f4098ca7e54f86975a (patch) | |
tree | c307dda030341761eafafb3d34259ed800c35e94 /sbin/newfs/newfs.c | |
parent | 0bbccbf2dc9057e56f7233044f08c4b59f4f3e30 (diff) | |
download | FreeBSD-src-5e75b336b9d01ea2b70ff9f4098ca7e54f86975a.zip FreeBSD-src-5e75b336b9d01ea2b70ff9f4098ca7e54f86975a.tar.gz |
Silence non-constant format string warnings by marking functions
as __printflike()/__printf0like(), adding const, or adding missing "%s"
format strings, as appropriate.
MFC after: 2 weeks
Diffstat (limited to 'sbin/newfs/newfs.c')
-rw-r--r-- | sbin/newfs/newfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index cf26619..a133f54 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -84,7 +84,7 @@ struct mntopt mopts[] = { }; #if __STDC__ -void fatal(const char *fmt, ...); +void fatal(const char *fmt, ...) __printflike(1, 2); #else void fatal(); #endif @@ -562,9 +562,9 @@ main(argc, argv) } #ifdef COMPAT -char lmsg[] = "%s: can't read disk label; disk type must be specified"; +const char lmsg[] = "%s: can't read disk label; disk type must be specified"; #else -char lmsg[] = "%s: can't read disk label"; +const char lmsg[] = "%s: can't read disk label"; #endif struct disklabel * |