diff options
| author | mhitch <mhitch@NetBSD.org> | 2006-08-04 01:48:02 +0000 |
|---|---|---|
| committer | mhitch <mhitch@NetBSD.org> | 2006-08-04 01:48:02 +0000 |
| commit | c97e01a8992cb6a25107ea35b3f9affdad11fc80 (patch) | |
| tree | 88a95d967a89cde64127fa524537802cd057de6e /sys/arch/atari/stand/binpatch/binpatch.c | |
| parent | fa97ed2f83675e12af26f40a967d04f18a01fe85 (diff) | |
gcc4 fixes: need to include stdlib.h; fix prototype and definition of
local error() function.
Diffstat (limited to 'sys/arch/atari/stand/binpatch/binpatch.c')
| -rw-r--r-- | sys/arch/atari/stand/binpatch/binpatch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/atari/stand/binpatch/binpatch.c b/sys/arch/atari/stand/binpatch/binpatch.c index 7f8fd4c618a..132230871ea 100644 --- a/sys/arch/atari/stand/binpatch/binpatch.c +++ b/sys/arch/atari/stand/binpatch/binpatch.c @@ -1,4 +1,4 @@ -/* $NetBSD: binpatch.c,v 1.3 1999/04/06 19:34:31 pk Exp $ */ +/* $NetBSD: binpatch.c,v 1.4 2006/08/04 01:48:02 mhitch Exp $ */ /* * Copyright (c) 1994 Christian E. Hopps @@ -33,11 +33,12 @@ #include <sys/types.h> #include <a.out.h> #include <stdio.h> +#include <stdlib.h> extern char *optarg; extern int optind; -volatile void error (); +void error (char *) __attribute__((__noreturn__)); int test = 1; int testbss; @@ -233,7 +234,7 @@ main(argc, argv) -volatile void error (str) +void error (str) char *str; { fprintf (stderr, "%s\n", str); |
