Mercurial > dovecot > original-hg > dovecot-2.1
changeset 14972:d16581e2d7cf
lib-settings: Support also "seconds" and "minutes" (instead of just secs/mins)
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 29 May 2013 12:44:15 +0300 |
parents | 22c5aff7b25c |
children | 99952f2b56ae |
files | src/lib-settings/settings-parser.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-settings/settings-parser.c Tue May 28 18:18:45 2013 +0300 +++ b/src/lib-settings/settings-parser.c Wed May 29 12:44:15 2013 +0300 @@ -354,12 +354,14 @@ switch (i_toupper(*p)) { case 'S': multiply = 1; - if (strncasecmp(p, "secs", strlen(p)) == 0) + if (strncasecmp(p, "secs", strlen(p)) == 0 || + strncasecmp(p, "seconds", strlen(p)) == 0) p = ""; break; case 'M': multiply = 60; - if (strncasecmp(p, "mins", strlen(p)) == 0) + if (strncasecmp(p, "mins", strlen(p)) == 0 || + strncasecmp(p, "minutes", strlen(p)) == 0) p = ""; break; case 'H':