mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove pointless playing with LC_TIME, which should have been done in r205821.
This commit is contained in:
parent
0b12ab8111
commit
1e01d2dcac
1 changed files with 0 additions and 10 deletions
|
|
@ -50,7 +50,6 @@ int year1, year2;
|
|||
void
|
||||
settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct tm *tp2)
|
||||
{
|
||||
char *oldl, *lbufp;
|
||||
struct tm tp;
|
||||
|
||||
localtime_r(&now, &tp);
|
||||
|
|
@ -68,15 +67,6 @@ settimes(time_t now, int before, int after, int friday, struct tm *tp1, struct t
|
|||
|
||||
strftime(dayname, sizeof(dayname) - 1, "%A, %d %B %Y", tp1);
|
||||
|
||||
oldl = NULL;
|
||||
lbufp = setlocale(LC_TIME, NULL);
|
||||
if (lbufp != NULL && (oldl = strdup(lbufp)) == NULL)
|
||||
errx(1, "cannot allocate memory");
|
||||
(void)setlocale(LC_TIME, "C");
|
||||
(void)setlocale(LC_TIME, (oldl != NULL ? oldl : ""));
|
||||
if (oldl != NULL)
|
||||
free(oldl);
|
||||
|
||||
setnnames();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue