Print this page
11227 smb code needs smatch fixes

*** 9,18 **** --- 9,19 ---- * 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,72 **** printf("%02x ", *buf++); idx++; if ((idx & 3) == 0) { *pa++ = ' '; ! putchar(' '); } if ((idx & 15) == 0) { *pa = '\0'; printf("%s\n", ascii); } --- 63,73 ---- printf("%02x ", *buf++); idx++; if ((idx & 3) == 0) { *pa++ = ' '; ! (void) putchar(' '); } if ((idx & 15) == 0) { *pa = '\0'; printf("%s\n", ascii); }
*** 75,85 **** if ((idx & 15) != 0) { *pa = '\0'; /* column align the last ascii row */ while ((idx & 15) != 0) { if ((idx & 3) == 0) ! putchar(' '); printf(" "); idx++; } printf("%s\n", ascii); } --- 76,86 ---- if ((idx & 15) != 0) { *pa = '\0'; /* column align the last ascii row */ while ((idx & 15) != 0) { if ((idx & 3) == 0) ! (void) putchar(' '); printf(" "); idx++; } printf("%s\n", ascii); }