summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-09-09 00:24:03 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-09-09 00:24:03 +0200
commit951252ff9dd357b499c7b72561676a45e83a4797 (patch)
treeb23064e679c2eb82868e844ac4520e7143357cb7
parentdab883320eada92534d73bede6e0df1b625058ab (diff)
README: fix sfeed_archive example
-rw-r--r--README4
1 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index d95810a..854d7aa 100644
--- a/README
+++ b/README
@@ -230,6 +230,8 @@ File sfeed_archive.c:
#include <sys/types.h>
+ #include <err.h>
+ #include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -258,7 +260,7 @@ File sfeed_archive.c:
tm.tm_mon = m - 1;
tm.tm_mday = d;
if ((comparetime = mktime(&tm)) == -1)
- usage();
+ err(1, "mktime");
while ((getline(&line, &size, stdin)) > 0) {
if (!(p = strchr(line, '\t')))