Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/smbfs 'lint' is a very bad name for a variable.



details:   https://anonhg.NetBSD.org/src/rev/ad4e9b8ae01b
branches:  trunk
changeset: 544227:ad4e9b8ae01b
user:      kristerw <kristerw%NetBSD.org@localhost>
date:      Sat Mar 15 02:22:13 2003 +0000

description:
'lint' is a very bad name for a variable.

diffstat:

 sys/fs/smbfs/smbfs_smb.c |  22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r 4dbcb9100799 -r ad4e9b8ae01b sys/fs/smbfs/smbfs_smb.c
--- a/sys/fs/smbfs/smbfs_smb.c  Sat Mar 15 02:16:02 2003 +0000
+++ b/sys/fs/smbfs/smbfs_smb.c  Sat Mar 15 02:22:13 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_smb.c,v 1.12 2003/03/03 21:17:05 jdolecek Exp $  */
+/*     $NetBSD: smbfs_smb.c,v 1.13 2003/03/15 02:22:13 kristerw Exp $  */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.12 2003/03/03 21:17:05 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.13 2003/03/15 02:22:13 kristerw Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1065,7 +1065,7 @@
        u_int8_t tb;
        u_int16_t date, time, wattr;
        u_int32_t size, next, dattr;
-       int64_t lint;
+       int64_t tmp;
        int error, svtz, cnt, fxsz, nmlen, recsz;
 
        if (ctx->f_ecnt == 0) {
@@ -1105,14 +1105,14 @@
                md_get_uint32le(mbp, &next);
                md_get_uint32(mbp, NULL);       /* file index */
                md_get_int64(mbp, NULL);        /* creation time */
-               md_get_int64le(mbp, &lint);
-               smb_time_NT2local(lint, svtz, &ctx->f_attr.fa_atime);
-               md_get_int64le(mbp, &lint);
-               smb_time_NT2local(lint, svtz, &ctx->f_attr.fa_mtime);
-               md_get_int64le(mbp, &lint);
-               smb_time_NT2local(lint, svtz, &ctx->f_attr.fa_ctime);
-               md_get_int64le(mbp, &lint);     /* file size */
-               ctx->f_attr.fa_size = lint;
+               md_get_int64le(mbp, &tmp);
+               smb_time_NT2local(tmp, svtz, &ctx->f_attr.fa_atime);
+               md_get_int64le(mbp, &tmp);
+               smb_time_NT2local(tmp, svtz, &ctx->f_attr.fa_mtime);
+               md_get_int64le(mbp, &tmp);
+               smb_time_NT2local(tmp, svtz, &ctx->f_attr.fa_ctime);
+               md_get_int64le(mbp, &tmp);      /* file size */
+               ctx->f_attr.fa_size = tmp;
                md_get_int64(mbp, NULL);        /* real size (should use) */
                md_get_uint32le(mbp, &dattr);   /* EA */
                ctx->f_attr.fa_attr = dattr;



Home | Main Index | Thread Index | Old Index