From: Kees van Reeuwijk Date: Tue, 23 Mar 2010 14:25:09 +0000 (+0000) Subject: More const correctness. X-Git-Tag: v3.1.7~208 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/doxygen.png?a=commitdiff_plain;h=407316e4513ea4bbd0fd5e5ff449afe24872af8f;p=minix.git More const correctness. Removed prototype for unimplemented getpgid() function. Removed a value return from a void function. --- diff --git a/drivers/orinoco/orinoco.c b/drivers/orinoco/orinoco.c index 138f3733f..3d0f44bbe 100644 --- a/drivers/orinoco/orinoco.c +++ b/drivers/orinoco/orinoco.c @@ -1287,8 +1287,6 @@ next: if(evstat != 0 && !(evstat & HERMES_EV_TICK)) { goto beginning; } - - return (1); } diff --git a/include/minix/minlib.h b/include/minix/minlib.h index 3fe63fb28..9c9c3187e 100644 --- a/include/minix/minlib.h +++ b/include/minix/minlib.h @@ -11,7 +11,7 @@ _PROTOTYPE(char *itoa, (int _n)); _PROTOTYPE(char *getpass, (const char *_prompt)); /* Miscellaneous MINIX. */ -_PROTOTYPE(void std_err, (char *_s)); +_PROTOTYPE(void std_err, (const char *_s)); _PROTOTYPE(void prints, (const char *_s, ...)); _PROTOTYPE(int fsversion, (char *_dev, char *_prog)); _PROTOTYPE(int getprocessor, (void)); diff --git a/include/unistd.h b/include/unistd.h index c353472c2..5c4b81549 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -137,7 +137,6 @@ _PROTOTYPE( ssize_t pread, (int, void *, size_t, off_t) ); _PROTOTYPE( int rmdir, (const char *_path) ); _PROTOTYPE( int setgid, (_mnx_Gid_t _gid) ); _PROTOTYPE( int setegid, (_mnx_Gid_t _gid) ); -_PROTOTYPE( int setpgid, (pid_t _pid, pid_t _pgid) ); _PROTOTYPE( pid_t setsid, (void) ); _PROTOTYPE( int setuid, (_mnx_Uid_t _uid) ); _PROTOTYPE( int seteuid, (_mnx_Uid_t _uid) ); diff --git a/lib/libc/other/stderr.c b/lib/libc/other/stderr.c index b7031287e..fd7f65b4b 100644 --- a/lib/libc/other/stderr.c +++ b/lib/libc/other/stderr.c @@ -2,12 +2,9 @@ #include #include -_PROTOTYPE( void std_err, (char *s)); - -void std_err(s) -char *s; +void std_err(const char *s) { - register char *p = s; + register const char *p = s; while (*p != 0) p++; write(2, s, (int) (p - s));