summaryrefslogtreecommitdiff
path: root/usr.bin/file
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2007-09-14 14:29:21 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2007-09-14 14:29:21 +0000
commit9f2d925dffdb4c245e7ccf857babe10c77b17518 (patch)
tree765ec3993a05497beaad5221beb15083f2b1d1f7 /usr.bin/file
parent8f00f23a2b0f39900bb1c2ab894a58e956979ffd (diff)
remove some warnings:
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
Diffstat (limited to 'usr.bin/file')
-rw-r--r--usr.bin/file/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/file/print.c b/usr.bin/file/print.c
index 1271370d843..11bd3781bf6 100644
--- a/usr.bin/file/print.c
+++ b/usr.bin/file/print.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: print.c,v 1.12 2007/09/11 15:47:17 gilles Exp $ */
+/* $OpenBSD: print.c,v 1.13 2007/09/14 14:29:20 chl Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
* Software written by Ian F. Darwin and others;
@@ -42,7 +42,7 @@
#include <time.h>
#ifndef lint
-FILE_RCSID("@(#)$Id: print.c,v 1.12 2007/09/11 15:47:17 gilles Exp $")
+FILE_RCSID("@(#)$Id: print.c,v 1.13 2007/09/14 14:29:20 chl Exp $")
#endif /* lint */
#define SZOF(a) (sizeof(a) / sizeof(a[0]))
@@ -155,7 +155,7 @@ file_magwarn(const char *f, ...)
protected char *
file_fmttime(uint32_t v, int local)
{
- char *pp, *rt;
+ char *pp;
time_t t = (time_t)v;
struct tm *tm;