Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Remove two shadowed variables, one of which wa...
details: https://anonhg.NetBSD.org/src/rev/fb3aea305dee
branches: trunk
changeset: 526610:fb3aea305dee
user: simonb <simonb%NetBSD.org@localhost>
date: Tue May 07 02:02:41 2002 +0000
description:
Remove two shadowed variables, one of which was set to what it was
shadowing(!) and the other a temporary variable (as was it's shadow).
Code generated with "gcc -O2" is the same before and after.
diffstat:
sys/lib/libsa/lfs.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r b2dbdd614140 -r fb3aea305dee sys/lib/libsa/lfs.c
--- a/sys/lib/libsa/lfs.c Tue May 07 02:00:17 2002 +0000
+++ b/sys/lib/libsa/lfs.c Tue May 07 02:02:41 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lfs.c,v 1.6 2000/03/30 12:19:48 augustss Exp $ */
+/* $NetBSD: lfs.c,v 1.7 2002/05/07 02:02:41 simonb Exp $ */
/*-
* Copyright (c) 1993
@@ -619,9 +619,7 @@
/*
* Read file for symbolic link
*/
- size_t buf_size;
daddr_t disk_block;
- struct fs *fs = fp->f_fs;
if (!buf)
buf = alloc(fs->fs_bsize);
Home |
Main Index |
Thread Index |
Old Index