diff options
Diffstat (limited to 'src/regress/lib/libc/malloc')
| -rw-r--r-- | src/regress/lib/libc/malloc/malloc0test/malloc0test.c | 6 | ||||
| -rw-r--r-- | src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/regress/lib/libc/malloc/malloc0test/malloc0test.c b/src/regress/lib/libc/malloc/malloc0test/malloc0test.c index 39c3fd2e64..910b466bd4 100644 --- a/src/regress/lib/libc/malloc/malloc0test/malloc0test.c +++ b/src/regress/lib/libc/malloc/malloc0test/malloc0test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: malloc0test.c,v 1.1 2003/07/15 10:09:37 otto Exp $ */ | 1 | /* $OpenBSD: malloc0test.c,v 1.2 2003/07/31 21:48:03 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Public domain. 2001, Theo de Raadt | 3 | * Public domain. 2001, Theo de Raadt |
| 4 | */ | 4 | */ |
| @@ -14,14 +14,14 @@ | |||
| 14 | volatile sig_atomic_t got; | 14 | volatile sig_atomic_t got; |
| 15 | jmp_buf jmp; | 15 | jmp_buf jmp; |
| 16 | 16 | ||
| 17 | void | 17 | static void |
| 18 | catch(int signo) | 18 | catch(int signo) |
| 19 | { | 19 | { |
| 20 | got++; | 20 | got++; |
| 21 | longjmp(jmp, 1); | 21 | longjmp(jmp, 1); |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | int | 24 | static int |
| 25 | test(char *p, int size) | 25 | test(char *p, int size) |
| 26 | { | 26 | { |
| 27 | signal(SIGSEGV, catch); | 27 | signal(SIGSEGV, catch); |
diff --git a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c index 61d85e5d41..1232dd660d 100644 --- a/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c +++ b/src/regress/lib/libc/malloc/malloc_errno/malloc_errno.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: malloc_errno.c,v 1.1 2003/07/15 10:06:31 otto Exp $ */ | 1 | /* $OpenBSD: malloc_errno.c,v 1.2 2003/07/31 21:48:03 deraadt Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Public domain. 2003, Otto Moerbeek | 3 | * Public domain. 2003, Otto Moerbeek |
| 4 | */ | 4 | */ |
| @@ -30,7 +30,7 @@ testerrno(size_t sz) | |||
| 30 | * correctly. | 30 | * correctly. |
| 31 | */ | 31 | */ |
| 32 | int | 32 | int |
| 33 | main() | 33 | main(int argc, char *argv[]) |
| 34 | { | 34 | { |
| 35 | size_t i; | 35 | size_t i; |
| 36 | 36 | ||
