From: Panu Matilainen Date: Tue, 31 May 2011 09:27:58 +0000 (+0300) Subject: Remove superfluous localtime() call X-Git-Tag: tznext/4.11.0.1.tizen20130304~1049 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5006b8fbce0e9286fd79b26889c64f0884f555d1;p=tools%2Flibrpm-tizen.git Remove superfluous localtime() call - The tm pointer is reset to localtime(&when) before accessed, this is nothing but a dead call and assignment --- diff --git a/lib/query.c b/lib/query.c index 3d5b7f2..3da114a 100644 --- a/lib/query.c +++ b/lib/query.c @@ -42,10 +42,8 @@ static void printFileInfo(const char * name, char *link = NULL; /* On first call, grab snapshot of now */ - if (now == 0) { + if (now == 0) now = time(NULL); - tm = localtime(&now); - } rstrlcpy(ownerfield, owner, sizeof(ownerfield)); rstrlcpy(groupfield, group, sizeof(groupfield));