From: Jim Meyering Date: Thu, 10 Apr 2003 21:41:03 +0000 (+0000) Subject: (wrapf): Declare with format attribute. X-Git-Tag: v5.0.1~741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179105b11742dae5b6a877fd998c03c897b2e928;p=thirdparty%2Fcoreutils.git (wrapf): Declare with format attribute. --- diff --git a/src/stty.c b/src/stty.c index 3ec6d33273..fd0addf005 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. */