From efc9c018b12dd35aa6bcbaa324d5c22081628801 Mon Sep 17 00:00:00 2001 From: Benjamin Kaduk Date: Sat, 13 Jul 2024 10:52:54 -0700 Subject: [PATCH] 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 Reviewed-by: Michael Meffie --- src/bozo/bnode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bozo/bnode.c b/src/bozo/bnode.c index c038fe3108..1890bf62ec 100644 --- a/src/bozo/bnode.c +++ b/src/bozo/bnode.c @@ -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);