소스 검색

Disabled NULL error_print_progname, useless

Peter S. Mazinger 18 년 전
부모
커밋
8b8916ece6
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      include/error.h
  2. 1 1
      libc/misc/error/error.c

+ 2 - 2
include/error.h

@@ -53,12 +53,12 @@ extern void error_at_line (int __status, int __errnum, const char *__fname,
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this
    function without parameters instead.  */
-extern void (*error_print_progname) (void);
+/* extern void (*error_print_progname) (void); */
 
 #else
 void error ();
 void error_at_line ();
-extern void (*error_print_progname) ();
+/* extern void (*error_print_progname) (); */
 #endif
 
 /* This variable is incremented each time `error' is called.  */

+ 1 - 1
libc/misc/error/error.c

@@ -32,7 +32,7 @@ int error_one_per_line;
 /* If NULL, error will flush stdout, then print on stderr the program
    name, a colon and a space.  Otherwise, error will call this
    function without parameters instead.  */
-void (*error_print_progname) (void) = NULL;
+/* void (*error_print_progname) (void) = NULL; */
 
 extern __typeof(error) __error attribute_hidden;
 void __error (int status, int errnum, const char *message, ...)