File: use_varadic_macro

package info (click to toggle)
sc 7.16-4.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,088 kB
  • sloc: ansic: 52,504; yacc: 2,630; makefile: 488; lisp: 99; sh: 13; sed: 4
file content (13 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: sc/sc.h
===================================================================
--- sc.orig/sc.h	2014-05-18 14:55:36.162030228 -0500
+++ sc/sc.h	2014-05-18 14:57:06.514031631 -0500
@@ -43,7 +43,7 @@
 #ifdef PSC
 # define error(msg)	fprintf(stderr, msg);
 #else
-# define error isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw
+# define error(format, msg...) (void)(isatty(fileno(stdout)) && !move(1,0) && !clrtoeol() && printw(format, ## msg))
 #endif
 #define	FBUFLEN	1024	/* buffer size for a single field */
 #define	PATHLEN	1024	/* maximum path length */