FreeBSD 10 clang port

This commit is contained in:
Ulrich Wilkens
2014-07-27 16:48:57 +02:00
committed by Jon Trulson
parent 8d0551bfda
commit c3f74eec17
99 changed files with 510 additions and 366 deletions

View File

@@ -1746,7 +1746,7 @@ AbortClient( int pid )
MC_LOG_SET,MC_LOG_NO_KILLCL,MC_DEF_LOG_NO_KILLCL));
case EINVAL:
case ESRCH:
return;
return 0;
}
}
if (!setjmp (tenaciousClient)) {
@@ -1834,11 +1834,11 @@ execute(char **argv, char **environ )
*/
f = fopen (argv[0], "r");
if (!f)
return;
return 0;
if (fgets (program, sizeof (program) - 1, f) == NULL)
{
fclose (f);
return;
return 0;
}
fclose (f);
e = program + strlen (program) - 1;