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

This commit is contained in:
christos 2003-02-23 22:03:11 +00:00
parent e211d06862
commit 8bf6b72335
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ smbfs_findopenLM1(struct smbfs_fctx *ctx, struct smbnode *dnp,
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 @@ smbfs_findnextLM1(struct smbfs_fctx *ctx, int limit)
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';