diff options
author | Jose Bollo <jose.bollo@iot.bzh> | 2019-05-09 15:04:55 +0200 |
---|---|---|
committer | Jose Bollo <jose.bollo@iot.bzh> | 2019-05-09 15:12:37 +0200 |
commit | 0bbd621cddb29c05cc9459076991be803931616a (patch) | |
tree | 87e26f7807ab5006dcef8f1902a6462d8a0a5048 | |
parent | 4a7cb415e9d95461398ec326139972fcc45fab70 (diff) |
Replace 'always' by 'forever'
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/expire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expire.c b/src/expire.c index 1571db7..68278ca 100644 --- a/src/expire.c +++ b/src/expire.c @@ -31,7 +31,7 @@ time_t txt2exp(const char *txt) time_t r, x; /* infinite time */ - if (!strcmp(txt, "always") || !strcmp(txt, "*")) + if (!strcmp(txt, "always") || !strcmp(txt, "forever") || !strcmp(txt, "*")) return 0; /* parse */ @@ -61,7 +61,7 @@ size_t exp2txt(time_t expire, char *buffer, size_t buflen) int n; if (!expire) - strncpy(b, "always", sizeof b); + strncpy(b, "forever", sizeof b); else { expire -= time(NULL); n = 0; |