From 179105b11742dae5b6a877fd998c03c897b2e928 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 10 Apr 2003 21:41:03 +0000 Subject: [PATCH] (wrapf): Declare with format attribute. --- src/stty.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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. */ -- 2.47.3