bozo: minor style fix

We use spaces around binary '-' but not around unary '-', so tighten
up the casted expression "(pid_t)-1" and add some parens around (-1)
as well since we're here, for improved readability.

Change-Id: Ic9ad30a72ece2e0d4e53a1623e24433970fa5441
Reviewed-on: https://gerrit.openafs.org/15790
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
Benjamin Kaduk 2024-07-13 10:52:54 -07:00 committed by Michael Meffie
parent 7f251877c9
commit efc9c018b1

View File

@ -1138,7 +1138,7 @@ bnode_NewProc(struct bnode *abnode, char *aexecString, char *coreName,
cpid = spawnprocve_sig(argv[0], argv, environ, -1, &set);
osi_audit(BOSSpawnProcEvent, 0, AUD_STR, aexecString, AUD_END);
if (cpid == (pid_t) - 1) {
if (cpid == (pid_t)(-1)) {
ViceLog(0, ("Failed to spawn process for bnode '%s'\n", abnode->name));
bnode_FreeTokens(tlist);
free(tp);