summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdtime/strptime.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-03-21 14:52:12 +0000
committerache <ache@FreeBSD.org>2001-03-21 14:52:12 +0000
commitba306db3cbf0e39fd4f1a2d160aaacca6ff64106 (patch)
treea80b38357fc5318cacdf3e35064cb2e9a11ce81c /lib/libc/stdtime/strptime.c
parenteecf925bc54c442e8bed9adc3120d037a67ccd20 (diff)
downloadFreeBSD-src-ba306db3cbf0e39fd4f1a2d160aaacca6ff64106.zip
FreeBSD-src-ba306db3cbf0e39fd4f1a2d160aaacca6ff64106.tar.gz
Get rid of non-standard %E[Ff] formats, userland apps already fixed
Diffstat (limited to 'lib/libc/stdtime/strptime.c')
-rw-r--r--lib/libc/stdtime/strptime.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/lib/libc/stdtime/strptime.c b/lib/libc/stdtime/strptime.c
index b39176d..09f8e18 100644
--- a/lib/libc/stdtime/strptime.c
+++ b/lib/libc/stdtime/strptime.c
@@ -165,22 +165,7 @@ label:
goto label;
case 'F':
- if (!Ealternative)
- buf = _strptime(buf, "%Y-%m-%d", tm);
- else
- buf = _strptime(buf,
- *(tptr->md_order) == 'd' ?
- "%e %B" : "%B %e", tm);
- if (buf == 0)
- return 0;
- break;
-
- case 'f':
- if (!Ealternative)
- break;
- buf = _strptime(buf,
- *(tptr->md_order) == 'd' ? "%e %b" : "%b %e",
- tm);
+ buf = _strptime(buf, "%Y-%m-%d", tm);
if (buf == 0)
return 0;
break;
OpenPOWER on IntegriCloud