summaryrefslogtreecommitdiff
path: root/src/stty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-04-10 21:41:03 +0000
committerJim Meyering <jim@meyering.net>2003-04-10 21:41:03 +0000
commit179105b11742dae5b6a877fd998c03c897b2e928 (patch)
tree7d09d3ee9d9b31427ca6aa5a5ec08053b3ce1bb8 /src/stty.c
parent3d98688378fa94b81a139debd171bdcd3e5250f0 (diff)
downloadcoreutils-179105b11742dae5b6a877fd998c03c897b2e928.tar.xz
(wrapf): Declare with format attribute.
Diffstat (limited to 'src/stty.c')
-rw-r--r--src/stty.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stty.c b/src/stty.c
index 3ec6d3327..fd0addf00 100644
--- a/src/stty.c
+++ b/src/stty.c
@@ -1,5 +1,5 @@
/* stty -- change and print terminal line settings
- Copyright (C) 1990-2002 Free Software Foundation, Inc.
+ Copyright (C) 1990-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -450,6 +450,9 @@ static struct option longopts[] =
/* The name this program was run with. */
char *program_name;
+static void wrapf (const char *message, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+
/* Print format string MESSAGE and optional args.
Wrap to next line first if it won't fit.
Print a space first unless MESSAGE will start a new line. */