Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/smbfs style; no space after cast, and add cast to the...



details:   https://anonhg.NetBSD.org/src/rev/61da40a63f80
branches:  trunk
changeset: 543357:61da40a63f80
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 23 22:03:11 2003 +0000

description:
style; no space after cast, and add cast to the assignment case too.

diffstat:

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

diffs (27 lines):

diff -r 90b6c866506d -r 61da40a63f80 sys/fs/smbfs/smbfs_smb.c
--- a/sys/fs/smbfs/smbfs_smb.c  Sun Feb 23 21:55:20 2003 +0000
+++ b/sys/fs/smbfs/smbfs_smb.c  Sun Feb 23 22:03:11 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smbfs_smb.c,v 1.7 2003/02/23 21:26:26 jdolecek Exp $   */
+/*     $NetBSD: smbfs_smb.c,v 1.8 2003/02/23 22:03:11 christos Exp $   */
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -853,7 +853,7 @@
                ctx->f_wildcard = NULL;
                ctx->f_wclen = 0;
        }
-       ctx->f_name = ctx->f_fname;
+       ctx->f_name = (char *)ctx->f_fname;
        return 0;
 }
 
@@ -883,7 +883,7 @@
        md_get_uint16le(mbp, &time);
        md_get_uint16le(mbp, &date);
        md_get_uint32le(mbp, &size);
-       KASSERT(ctx->f_name == (char *) ctx->f_fname);
+       KASSERT(ctx->f_name == (char *)ctx->f_fname);
        cp = ctx->f_name;
        md_get_mem(mbp, cp, sizeof(ctx->f_fname), MB_MSYSTEM);
        cp[sizeof(ctx->f_fname) - 1] = '\0';



Home | Main Index | Thread Index | Old Index