diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-24 20:43:21 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2008-04-24 20:43:21 +0000 |
commit | 90521bd510f411f928908926bb1bbda3ad580a78 (patch) | |
tree | 48270e8de032e1c47a53409f9fa11806bf184f38 /lib/libc/sys/Lint_brk.c | |
parent | 4f9e1ab3a6ccc4582120bd25ea39d4401bd852bb (diff) |
- correct brk(2) prototype and man page to match implementation and POSIX.
brk(2) returns an int value not a void *. brk(2) returns 0 upon success not
a pointer to the new end of memory. okay millert@, kettenis@, deraadt@
Diffstat (limited to 'lib/libc/sys/Lint_brk.c')
-rw-r--r-- | lib/libc/sys/Lint_brk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/sys/Lint_brk.c b/lib/libc/sys/Lint_brk.c index 3d194b81941..6ce98c0675a 100644 --- a/lib/libc/sys/Lint_brk.c +++ b/lib/libc/sys/Lint_brk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: Lint_brk.c,v 1.3 2005/11/28 16:54:07 deraadt Exp $ */ +/* $OpenBSD: Lint_brk.c,v 1.4 2008/04/24 20:43:20 kurt Exp $ */ /* $NetBSD: Lint_brk.c,v 1.1 1997/11/06 00:52:52 cgd Exp $ */ /* @@ -9,7 +9,7 @@ #include <unistd.h> /*ARGSUSED*/ -void * +int brk(void *addr) { return (0); |