MFC r298024,r298196:

r298024:

Set test_argv to NULL, not 0, if not executing a specific test

r298196:

Minor cosmetic cleanup

- Remove spurious trailing whitespace in licensing header
- Remove unnecessary semi-colon after comment
This commit is contained in:
Enji Cooper 2016-04-22 21:30:42 +00:00
parent 08bbdfbb44
commit 224be49968
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=298490
2 changed files with 3 additions and 3 deletions

View File

@ -1566,7 +1566,7 @@ main(int argc, const char *argv[])
} else {
testnum = 0;
test_argc = 0;
test_argv = 0;
test_argv = NULL;
}
sa.sa_handler = ignore_alarm;

View File

@ -3,7 +3,7 @@
* All rights reserved.
*
* This software was developed at the University of Cambridge Computer
* Laboratory with support from a grant from Google, Inc.
* Laboratory with support from a grant from Google, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@ -115,7 +115,7 @@ main(__unused int argc, __unused char *argv[])
err(-1, "listen");
if (pthread_create(&accept_thread, NULL, do_accept, NULL) != 0)
err(-1, "pthread_create");
sleep(1); /* Easier than using a CV. */;
sleep(1); /* Easier than using a CV. */
do_fork();
exit(0);
}