diff --git a/headers/posix/unistd.h b/headers/posix/unistd.h index 8aea936ee5..827de17441 100644 --- a/headers/posix/unistd.h +++ b/headers/posix/unistd.h @@ -1,5 +1,5 @@ /* - * Copyright 2004-2006, Haiku Inc. All Rights Reserved. + * Copyright 2004-2007, Haiku Inc. All Rights Reserved. * Distributed under the terms of the MIT License. */ #ifndef _UNISTD_H_ @@ -145,7 +145,7 @@ extern pid_t getpgid(pid_t pid); extern pid_t setsid(void); extern int setpgid(pid_t pid, pid_t pgid); -extern int setpgrp(void); +extern pid_t setpgrp(void); /* access permissions */ extern gid_t getegid(void); diff --git a/src/system/libroot/posix/unistd/process.c b/src/system/libroot/posix/unistd/process.c index b68e5e7c83..c119be38c4 100644 --- a/src/system/libroot/posix/unistd/process.c +++ b/src/system/libroot/posix/unistd/process.c @@ -1,7 +1,7 @@ -/* -** Copyright 2002-2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. -** Distributed under the terms of the Haiku License. -*/ +/* + * Copyright 2002-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved. + * Distributed under the terms of the MIT License. + */ #include @@ -73,7 +73,7 @@ setpgid(pid_t process, pid_t group) } -int +pid_t setpgrp(void) { return setpgid(0, 0);