1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/astro/luna/files/patch-af
Satoshi Taoka 111db80c3d Fix MASTER_SITES
Divide patch-aa into patch-a[b-g]

PR: 16865
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
No response from: maintainer
2000-02-21 16:44:15 +00:00

34 lines
796 B
Plaintext

--- pyramid.c.orig Mon May 25 01:26:10 1992
+++ pyramid.c Mon Feb 21 02:23:51 2000
@@ -67,7 +67,7 @@
Time_t ltime;
time(&ltime);
- return (localtime(ltime));
+ return (localtime(&ltime));
#endif /* MSDOS or UNIX */
}
@@ -197,19 +197,14 @@
Asctime(struct tm *tmp)
{
static char s[LASCTIME];
- char *tzname;
- if ((tzname = getenv("TZ")) == NULL) {
- tzname = TZNAME_DFL;
- }
- sprintf(s, "%s %s %2d %02d:%02d:%02d %4d %3.3s\n",
+ sprintf(s, "%s %s %2d %4d %02d:%02d:%02d\n",
downame[ymd2wday(tmp -> tm_year, tmp -> tm_mon,
tmp -> tm_mday)],
capitalize(monname[tmp -> tm_mon]),
tmp -> tm_mday,
- tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec,
tmp -> tm_year + 1900,
- tzname
+ tmp -> tm_hour, tmp -> tm_min, tmp -> tm_sec,
);
return (s);