summaryrefslogtreecommitdiff
path: root/runit/svlogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'runit/svlogd.c')
-rw-r--r--runit/svlogd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/runit/svlogd.c b/runit/svlogd.c
index 08e0b6446..b271b743f 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -488,9 +488,9 @@ static unsigned logdir_open(struct logdir *ld, const char *fn)
488 break; 488 break;
489 case 's': { 489 case 's': {
490 static const struct suffix_mult km_suffixes[] = { 490 static const struct suffix_mult km_suffixes[] = {
491 { "k", 1024 }, 491 { "k", 1024 },
492 { "m", 1024*1024 }, 492 { "m", 1024*1024 },
493 { NULL, 0 } 493 { }
494 }; 494 };
495 ld->sizemax = xatou_sfx(&s[1], km_suffixes); 495 ld->sizemax = xatou_sfx(&s[1], km_suffixes);
496 break; 496 break;
@@ -503,10 +503,10 @@ static unsigned logdir_open(struct logdir *ld, const char *fn)
503 break; 503 break;
504 case 't': { 504 case 't': {
505 static const struct suffix_mult mh_suffixes[] = { 505 static const struct suffix_mult mh_suffixes[] = {
506 { "m", 60 }, 506 { "m", 60 },
507 { "h", 60*60 }, 507 { "h", 60*60 },
508 /*{ "d", 24*60*60 },*/ 508 /*{ "d", 24*60*60 },*/
509 { NULL, 0 } 509 { }
510 }; 510 };
511 ld->tmax = xatou_sfx(&s[1], mh_suffixes); 511 ld->tmax = xatou_sfx(&s[1], mh_suffixes);
512 if (ld->tmax) { 512 if (ld->tmax) {