More const correctness.

Removed prototype for unimplemented getpgid() function.
Removed a value return from a void function.
This commit is contained in:
Kees van Reeuwijk 2010-03-23 14:25:09 +00:00
parent a6957b7847
commit 407316e451
4 changed files with 3 additions and 9 deletions

View file

@ -1287,8 +1287,6 @@ next:
if(evstat != 0 && !(evstat & HERMES_EV_TICK)) {
goto beginning;
}
return (1);
}

View file

@ -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));

View file

@ -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) );

View file

@ -2,12 +2,9 @@
#include <sys/types.h>
#include <unistd.h>
_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));