Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170718336
D40656.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
877 B
Referenced Files
None
Subscribers
None
D40656.diff
View Options
diff --git a/usr.sbin/fifolog/lib/getdate.y b/usr.sbin/fifolog/lib/getdate.y
--- a/usr.sbin/fifolog/lib/getdate.y
+++ b/usr.sbin/fifolog/lib/getdate.y
@@ -818,30 +818,18 @@
time_t
get_date(char *p)
{
- struct tm *tm, gmt;
+ struct tm *tm;
time_t Start;
time_t tod;
time_t nowtime;
- struct tm *gmt_ptr;
yyInput = p;
(void)time (&nowtime);
- gmt_ptr = gmtime (&nowtime);
- if (gmt_ptr != NULL)
- {
- /* Make a copy, in case localtime modifies *tm (I think
- that comment now applies to *gmt_ptr, but I am too
- lazy to dig into how gmtime and locatime allocate the
- structures they return pointers to). */
- gmt = *gmt_ptr;
- }
-
if (! (tm = localtime (&nowtime)))
return -1;
- tm = localtime(&nowtime);
yyYear = tm->tm_year + 1900;
yyMonth = tm->tm_mon + 1;
yyDay = tm->tm_mday;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 7, 4:58 AM (7 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38450982
Default Alt Text
D40656.diff (877 B)
Attached To
Mode
D40656: fifolog: Trim some dead code and unused variables.
Attached
Detach File
Event Timeline
Log In to Comment