Module Name: src Committed By: riastradh Date: Fri Feb 19 04:18:32 UTC 2016
Modified Files: src/sys/ufs/lfs: lfs_accessors.h Log Message: Explicitly cast between char and unsigned char here. To generate a diff of this commit: cvs rdiff -u -r1.43 -r1.44 src/sys/ufs/lfs/lfs_accessors.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/ufs/lfs/lfs_accessors.h diff -u src/sys/ufs/lfs/lfs_accessors.h:1.43 src/sys/ufs/lfs/lfs_accessors.h:1.44 --- src/sys/ufs/lfs/lfs_accessors.h:1.43 Fri Feb 19 03:43:42 2016 +++ src/sys/ufs/lfs/lfs_accessors.h Fri Feb 19 04:18:32 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: lfs_accessors.h,v 1.43 2016/02/19 03:43:42 riastradh Exp $ */ +/* $NetBSD: lfs_accessors.h,v 1.44 2016/02/19 04:18:32 riastradh Exp $ */ /* from NetBSD: lfs.h,v 1.165 2015/07/24 06:59:32 dholland Exp */ /* from NetBSD: dinode.h,v 1.22 2013/01/22 09:39:18 dholland Exp */ @@ -1275,9 +1275,9 @@ static __inline const char * lfs_sb_getfsmnt(STRUCT_LFS *fs) { if (fs->lfs_is64) { - return fs->lfs_dlfs_u.u_64.dlfs_fsmnt; + return (const char *)fs->lfs_dlfs_u.u_64.dlfs_fsmnt; } else { - return fs->lfs_dlfs_u.u_32.dlfs_fsmnt; + return (const char *)fs->lfs_dlfs_u.u_32.dlfs_fsmnt; } } @@ -1285,10 +1285,10 @@ static __inline void lfs_sb_setfsmnt(STRUCT_LFS *fs, const char *str) { if (fs->lfs_is64) { - (void)strncpy(fs->lfs_dlfs_u.u_64.dlfs_fsmnt, str, + (void)strncpy((char *)fs->lfs_dlfs_u.u_64.dlfs_fsmnt, str, sizeof(fs->lfs_dlfs_u.u_64.dlfs_fsmnt)); } else { - (void)strncpy(fs->lfs_dlfs_u.u_32.dlfs_fsmnt, str, + (void)strncpy((char *)fs->lfs_dlfs_u.u_32.dlfs_fsmnt, str, sizeof(fs->lfs_dlfs_u.u_32.dlfs_fsmnt)); } }