Skip to content
Snippets Groups Projects
Commit f033f2a8 authored by deuce's avatar deuce
Browse files

uname() returns non-negative on success.

parent 2512c12c
No related branches found
No related tags found
No related merge requests found
...@@ -314,7 +314,7 @@ int main(int argc, char **argv) ...@@ -314,7 +314,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
if(uname(&params.name)) { if(uname(&params.name)<0) {
SAFECOPY(params.name.machine,"Unknown"); SAFECOPY(params.name.machine,"Unknown");
SAFECOPY(params.name.sysname,params.name.machine); SAFECOPY(params.name.sysname,params.name.machine);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment