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:
320c150
)
Remove unused nowtm variable
author
Panu Matilainen
<pmatilai@redhat.com>
Fri, 4 Mar 2011 10:32:49 +0000
(12:32 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 4 Mar 2011 10:32:49 +0000
(12:32 +0200)
lib/query.c
patch
|
blob
|
history
diff --git
a/lib/query.c
b/lib/query.c
index
308fe65
..
dd9c76f
100644
(file)
--- a/
lib/query.c
+++ b/
lib/query.c
@@
-38,7
+38,6
@@
static void printFileInfo(const char * name,
time_t when = mtime; /* important if sizeof(int32_t) ! sizeof(time_t) */
struct tm * tm;
static time_t now;
- static struct tm nowtm;
char * perms = rpmPermsString(mode);
char *link = NULL;
@@
-46,7
+45,6
@@
static void printFileInfo(const char * name,
if (now == 0) {
now = time(NULL);
tm = localtime(&now);
- if (tm) nowtm = *tm; /* structure assignment */
}
rstrlcpy(ownerfield, owner, sizeof(ownerfield));