* We don't care about the return value, but need to collect it
* to avoid compiler warnings.
*/
- if (write(2,"",0) < 0) /* dummy write */
- ; /* don't care */
+ if (write(2,"",0) < 0) {
+ /* dummy write, don't care */
+ }
#endif
token_setPag(token, afssetpag);
status = ktc_SetTokenEx(token);
0)) {
found = i; /* replace existing entry */
break;
- } else /* valid, but no match */
- ;
+ } else {
+ /* valid, but no match */
+ }
} else
found = i; /* remember this empty slot */
if (found == -1)
* If this fails, there's nothing we can do, but we must test
* it in order to avoid complier warnings on some platforms.
*/
- if (write(pipefd[1], &ioctl_rc, sizeof(int)) < 0)
- ; /* don't care */
+ if (write(pipefd[1], &ioctl_rc, sizeof(int)) < 0) {
+ /* don't care */
+ }
exit(0);
} else { /* parent process */
* If this fails, there's nothing we can do, but we must test
* it in order to avoid complier warnings on some platforms.
*/
- if (write(pipefd[1], &open_rc, sizeof(open_rc)) < 0)
- ; /* don't care */
+ if (write(pipefd[1], &open_rc, sizeof(open_rc)) < 0) {
+ /* don't care */
+ }
exit(0);
} else { /* parent process */
* block until the parent is ready. But we must do something
* with the result, to avoid complier warnings on some platforms.
*/
- if (read(ctlpipe[0], &close_rc, sizeof(int)) < 0)
- ; /* don't care */
+ if (read(ctlpipe[0], &close_rc, sizeof(int)) < 0) {
+ /* don't care */
+ }
close(ctlpipe[0]);
/* do the close */
* If this fails, there's nothing we can do, but we must test
* it in order to avoid complier warnings on some platforms.
*/
- if (write(pipefd[1], &close_rc, sizeof(int)) < 0)
- ; /* don't care */
+ if (write(pipefd[1], &close_rc, sizeof(int)) < 0) {
+ /* don't care */
+ }
exit(0);
} else { /* parent process */
/* might be out of space now */
if (!nbytes) {
return requestCount;
- } else; /* more data to send, so get another packet and keep going */
+ } else {
+ /* more data to send, so get another packet and keep going */
+ }
} while (nbytes);
return requestCount - nbytes;
rxi_tracepos = 0;
if (rxi_logfd < 0)
return;
- if (write(rxi_logfd, rxi_tracebuf, len) < 0)
- ; /* don't care */
+ if (write(rxi_logfd, rxi_tracebuf, len) < 0) {
+ /* don't care */
+ }
}
void
{
LOCK_SERVERLOG();
if (serverLogFD >= 0) {
- if (write(serverLogFD, buf, len) < 0)
- ; /* don't care */
+ if (write(serverLogFD, buf, len) < 0) {
+ /* don't care */
+ }
}
UNLOCK_SERVERLOG();
}
} else
#endif
if (serverLogFD >= 0) {
- if (write(serverLogFD, tbuffer, len) < 0)
- ; /* don't care */
+ if (write(serverLogFD, tbuffer, len) < 0) {
+ /* don't care */
+ }
}
UNLOCK_SERVERLOG();
static void
RedirectStdStreams(const char *fileName)
{
- if (freopen(fileName, "a", stdout) == NULL)
- ; /* don't care */
+ if (freopen(fileName, "a", stdout) == NULL) {
+ /* don't care */
+ }
if (freopen(fileName, "a", stderr) != NULL) {
#ifdef HAVE_SETVBUF
setvbuf(stderr, NULL, _IONBF, 0);
if (SawLock)
plock(PROCLOCK);
#elif !defined(AFS_NT40_ENV)
- if (nice(-5) < 0)
- ; /* don't care */
+ if (nice(-5) < 0) {
+ /* don't care */
+ }
#endif
DInit(buffs);
#ifdef AFS_DEMAND_ATTACH_FS
fflush(STDOUT);
if (fscanf(stdin, "%c", &in) < 1)
in = 0;
- if (fscanf(stdin, "%c", &lf) < 0) /* toss away */
- ; /* don't care */
+ if (fscanf(stdin, "%c", &lf) < 0) {
+ /* toss away; don't care */
+ }
if (in == 'y') {
fprintf(STDOUT, "type control-c\n");
while (1) {
fflush(STDOUT);
if (fscanf(stdin, "%c", &in) < 1)
in = 0;
- if (fscanf(stdin, "%c", &lf) < 0) /* toss away */
- ; /* don't care */
+ if (fscanf(stdin, "%c", &lf) < 0) {
+ /* toss away, don't care */
+ }
if (in == 'y') {
fprintf(STDOUT, "type control-c\n");
while (1) {
fflush(STDOUT);
if (fscanf(stdin, "%c", &in) < 1)
in = 0;
- if (fscanf(stdin, "%c", &lf) < 0) /* toss away */
- ; /* don't care */
+ if (fscanf(stdin, "%c", &lf) < 0) {
+ /* toss away; don't care */
+ }
if (in == 'y') {
fprintf(STDOUT, "type control-c\n");
while (1) {
fflush(STDOUT);
if (fscanf(stdin, "%c", &in) < 1)
in = 0;
- if (fscanf(stdin, "%c", &lf) < 0) /* toss away */
- ; /* don't care */
+ if (fscanf(stdin, "%c", &lf) < 0) { /* toss away */
+ /* don't care */
+ }
if (in == 'y') {
fprintf(STDOUT, "type control-c\n");
while (1) {