From efba6f5083025218647785ab5d1ac16fd770d04a Mon Sep 17 00:00:00 2001 From: chl Date: Fri, 14 Sep 2007 14:29:20 +0000 Subject: remove some warnings: unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@ --- usr.bin/file/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/file/print.c') 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 #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; -- cgit v1.2.3-59-g8ed1b