summaryrefslogtreecommitdiff
path: root/sbin/fsck_ext2fs
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-12-16 17:45:00 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-12-16 17:45:00 +0000
commitaded13c23b29033769b54120973c097caf998bf5 (patch)
tree617f2298aec48e2071d9bc0dce2b625a18cff7dd /sbin/fsck_ext2fs
parent79e58277cbefd21ba134443f11fc384fe0a22d50 (diff)
Eliminate some gcc warnings about 'unused variables', mostly by
adding appropriate #ifdef's around declarations. ok millert@ (with a tweak I will commit separately)
Diffstat (limited to 'sbin/fsck_ext2fs')
-rw-r--r--sbin/fsck_ext2fs/inode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/fsck_ext2fs/inode.c b/sbin/fsck_ext2fs/inode.c
index 1fa37e9a3cf..88338eed528 100644
--- a/sbin/fsck_ext2fs/inode.c
+++ b/sbin/fsck_ext2fs/inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inode.c,v 1.26 2016/04/28 12:17:15 krw Exp $ */
+/* $OpenBSD: inode.c,v 1.27 2016/12/16 17:44:59 krw Exp $ */
/* $NetBSD: inode.c,v 1.8 2000/01/28 16:01:46 bouyer Exp $ */
/*
@@ -560,7 +560,9 @@ pinode(ino_t ino)
{
struct ext2fs_dinode *dp;
char *p;
+#ifndef SMALL
struct passwd *pw;
+#endif
time_t t;
u_int32_t uid;