Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3fa7901

Browse files
author
Neil Conway
committed
This patch changes the use of varargs.h to stdarg.h as
required by modern versions of GCC.Niels Breet
1 parentea208ac commit3fa7901

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/tools/entab/halt.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
**This is used to print out error messages and exit
66
*/
77

8-
#include<varargs.h>
8+
#include<stdarg.h>
99
#include<signal.h>
1010
#include<stdio.h>
1111
#include<errno.h>
@@ -19,15 +19,14 @@
1919

2020
/*VARARGS*/
2121
void
22-
halt(va_alist)
23-
va_dcl
22+
halt(constchar*path, ...)
2423
{
2524
va_listarg_ptr;
2625
char*format,
2726
*pstr;
2827
void(*sig_func) ();
2928

30-
va_start(arg_ptr);
29+
va_start(arg_ptr,path);
3130
format=va_arg(arg_ptr,char*);
3231
if (strncmp(format,"PERROR",6)!=0)
3332
vfprintf(stderr,format,arg_ptr);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp