Skip to content
Snippets Groups Projects
Commit 2048fb9c authored by rswindell's avatar rswindell
Browse files

Eliminating bc++/Linux warnings.

parent eb6f0e3b
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,7 @@ static void lputs(char *str) ...@@ -191,7 +191,7 @@ static void lputs(char *str)
/********************************************************** /**********************************************************
* Change uid of the calling process to the user if specified * Change uid of the calling process to the user if specified
* **********************************************************/ * **********************************************************/
static BOOL do_setuid() static BOOL do_setuid(void)
{ {
BOOL result=FALSE; BOOL result=FALSE;
...@@ -985,7 +985,7 @@ int main(int argc, char** argv) ...@@ -985,7 +985,7 @@ int main(int argc, char** argv)
{ {
new_gid_name=arg; new_gid_name=arg;
old_gid = getgid(); old_gid = getgid();
if((gr_entry=getgrnam(new_gid_name)) && (new_gid=gr_entry->gr_gid)) if((gr_entry=getgrnam(new_gid_name))!=0 && (new_gid=gr_entry->gr_gid)!=0)
do_seteuid(TRUE); do_seteuid(TRUE);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment