projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b934f
)
Remove superfluous localtime() call
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 09:27:58 +0000
(12:27 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 09:27:58 +0000
(12:27 +0300)
- The tm pointer is reset to localtime(&when) before accessed,
this is nothing but a dead call and assignment
lib/query.c
patch
|
blob
|
history
diff --git
a/lib/query.c
b/lib/query.c
index
3d5b7f2
..
3da114a
100644
(file)
--- 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));