diff options
| author | Garance A Drosehn <gad@FreeBSD.org> | 2002-04-28 01:33:45 +0000 |
|---|---|---|
| committer | Garance A Drosehn <gad@FreeBSD.org> | 2002-04-28 01:33:45 +0000 |
| commit | 38a1326cad12aa8f57c6acd7498f25503df976c9 (patch) | |
| tree | 7f720dcbd2c5958c3ebe9655a3d746b461a5aac7 /gnu/usr.bin/patch/util.c | |
| parent | a3df8483c81347db7e5cc51d166838bcc8c02bfb (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/patch/util.c')
| -rw-r--r-- | gnu/usr.bin/patch/util.c | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/gnu/usr.bin/patch/util.c b/gnu/usr.bin/patch/util.c index 277440ca0ac1..175952c25ee9 100644 --- a/gnu/usr.bin/patch/util.c +++ b/gnu/usr.bin/patch/util.c @@ -8,7 +8,7 @@ #include "util.h" #include "backupfile.h" -void my_exit(); +void my_exit(int _status); /* in patch.c */ #ifndef HAVE_STRERROR static char * @@ -28,8 +28,7 @@ private_strerror (errnum) /* Rename a file, copying it if necessary. */ int -move_file(from,to) -char *from, *to; +move_file(char *from, char *to) { char bakname[512]; Reg1 char *s; @@ -131,8 +130,7 @@ char *from, *to; /* Copy a file. */ void -copy_file(from,to) -char *from, *to; +copy_file(char *from, char *to) { Reg3 int tofd; Reg2 int fromfd; @@ -154,8 +152,7 @@ char *from, *to; /* Allocate a unique area for a string. */ char * -savestr(s) -Reg1 char *s; +savestr(char *s) { Reg3 char *rv; Reg2 char *t; @@ -285,8 +282,7 @@ long arg1,arg2,arg3; /* How to handle certain events when not in a critical region. */ void -set_signals(reset) -int reset; +set_signals(int reset) { #ifndef lint static RETSIGTYPE (*hupval)(),(*intval)(); @@ -307,7 +303,7 @@ int reset; /* How to handle certain events when in a critical region. */ void -ignore_signals() +ignore_signals(void) { #ifndef lint Signal(SIGHUP, SIG_IGN); @@ -367,10 +363,7 @@ bool striplast; /* Make filenames more reasonable. */ char * -fetchname(at,strip_leading,assume_exists) -char *at; -int strip_leading; -int assume_exists; +fetchname(char *at, int strip_leading, int assume_exists) { char *fullname; char *name; @@ -434,8 +427,7 @@ int assume_exists; } char * -xmalloc (size) - unsigned size; +xmalloc(unsigned int size) { register char *p = (char *) malloc (size); if (!p) |
