#include <regex.h>
#include <sys/types.h>
-#include <dirent.h>
#include <stdbool.h>
#include "para.h"
(sc->flags & SCF_PARSER_FRIENDLY)? &pfpb : &pb;
char *msg = stat_item_values[item_num];
if (!b->buf)
- WRITE_STATUS_ITEM(b, item_num, "%s\n",
+ (void)WRITE_STATUS_ITEM(b, item_num, "%s\n",
msg? msg : "");
ret = write(fd, b->buf, b->offset);
if (ret == b->offset)
char *item = stat_item_values[i];
if (!((one << i) & mask))
continue;
- WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : "");
+ (void)WRITE_STATUS_ITEM(&b, i, "%s\n", item? item : "");
}
ret = client_write(fd, b.buf);
if (ret >= 0)