12c12
< * Copyright (c) 2013, Joyent, Inc. All rights reserved.
---
> * Copyright (c) 2014, Joyent, Inc.
23,25c23,27
< #define FPRINTF(fp, ...) \
< if (fprintf(fp, __VA_ARGS__) < 0) \
< return (-1) \
---
> #define FPRINTF(fp, ...) \
> do { \
> if (fprintf(fp, __VA_ARGS__) < 0) \
> return (-1); \
> } while (0)
303c305
< FPRINTF(fp, "%hd", val[i]);
---
> FPRINTF(fp, "%hhd", val[i]);
331c333
< FPRINTF(fp, "%hhd", val[i]);
---
> FPRINTF(fp, "%hd", val[i]);
< * Copyright (c) 2013, Joyent, Inc. All rights reserved.
---
> * Copyright (c) 2014, Joyent, Inc.
23,25c23,27
< #define FPRINTF(fp, ...) \
< if (fprintf(fp, __VA_ARGS__) < 0) \
< return (-1) \
---
> #define FPRINTF(fp, ...) \
> do { \
> if (fprintf(fp, __VA_ARGS__) < 0) \
> return (-1); \
> } while (0)
303c305
< FPRINTF(fp, "%hd", val[i]);
---
> FPRINTF(fp, "%hhd", val[i]);
331c333
< FPRINTF(fp, "%hhd", val[i]);
---
> FPRINTF(fp, "%hd", val[i]);