Code Review
/
src
/
cynagora.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
4a7cb41
)
Replace 'always' by 'forever'
author
Jose Bollo
<jose.bollo@iot.bzh>
Thu, 9 May 2019 13:04:55 +0000
(15:04 +0200)
committer
Jose Bollo
<jose.bollo@iot.bzh>
Thu, 9 May 2019 13:12:37 +0000
(15:12 +0200)
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/expire.c
patch
|
blob
|
history
diff --git
a/src/expire.c
b/src/expire.c
index
1571db7
..
68278ca
100644
(file)
--- 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;