summaryrefslogtreecommitdiff
path: root/lib/query.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-03-04 12:32:49 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-03-04 12:32:49 +0200
commit3baf0da79f32879a3a14d12091dcf52da3513ee4 (patch)
tree0d5a0f48f9e3174b6746eb779f28f00b2ea1f1bf /lib/query.c
parent320c150e6ffa55a7c5454331f89d2d366f76fe73 (diff)
downloadlibrpm-tizen-3baf0da79f32879a3a14d12091dcf52da3513ee4.tar.gz
librpm-tizen-3baf0da79f32879a3a14d12091dcf52da3513ee4.tar.bz2
librpm-tizen-3baf0da79f32879a3a14d12091dcf52da3513ee4.zip
Remove unused nowtm variable
Diffstat (limited to 'lib/query.c')
-rw-r--r--lib/query.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/query.c b/lib/query.c
index 308fe6593..dd9c76fee 100644
--- 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));