Print this page
11227 smb code needs smatch fixes
@@ -9,10 +9,11 @@
* http://www.illumos.org/license/CDDL.
*/
/*
* Copyright 2018 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
*/
/*
* Test & debug program for smb_msgbuf.c and smb_mbuf_marshaling.c
*/
@@ -62,11 +63,11 @@
printf("%02x ", *buf++);
idx++;
if ((idx & 3) == 0) {
*pa++ = ' ';
- putchar(' ');
+ (void) putchar(' ');
}
if ((idx & 15) == 0) {
*pa = '\0';
printf("%s\n", ascii);
}
@@ -75,11 +76,11 @@
if ((idx & 15) != 0) {
*pa = '\0';
/* column align the last ascii row */
while ((idx & 15) != 0) {
if ((idx & 3) == 0)
- putchar(' ');
+ (void) putchar(' ');
printf(" ");
idx++;
}
printf("%s\n", ascii);
}