summaryrefslogtreecommitdiff
path: root/i3status.c
diff options
context:
space:
mode:
authorIngo Bürk <admin@airblader.de>2018-06-22 13:55:09 +0200
committerGitHub <noreply@github.com>2018-06-22 13:55:09 +0200
commit4d3344ab9cd68bad5faf4ed3dad185dfcacb1e3d (patch)
tree66846b5f6023291fda2d72fe523d4ee0614d2a1f /i3status.c
parent64fd6e10478cabd0e2f9b554b71971a865c02d60 (diff)
parentc221b4d331d46d07fe24afc78e4eeb021556d013 (diff)
Merge pull request #290 from duskCoder/changes
Fix potential issues & avoid unnecessary instructions
Diffstat (limited to 'i3status.c')
-rw-r--r--i3status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/i3status.c b/i3status.c
index 6461d6b..316159c 100644
--- a/i3status.c
+++ b/i3status.c
@@ -106,7 +106,7 @@ static bool path_exists(const char *path) {
static void *scalloc(size_t size) {
void *result = calloc(size, 1);
- exit_if_null(result, "Error: out of memory (calloc(%zd))\n", size);
+ exit_if_null(result, "Error: out of memory (calloc(%zu))\n", size);
return result;
}
@@ -142,7 +142,7 @@ static int parse_min_width(cfg_t *context, cfg_opt_t *option, const char *value,
long num = strtol(value, &end, 10);
if (num < 0)
- die("Invalid min_width attribute found in section %s, line %d: %d\n"
+ die("Invalid min_width attribute found in section %s, line %d: %ld\n"
"Expected positive integer or string\n",
context->name, context->line, num);
else if (num == LONG_MIN || num == LONG_MAX || (end && *end != '\0'))