diff options
author | Xin LI <delphij@FreeBSD.org> | 2019-04-06 03:42:15 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2019-04-06 03:42:15 +0000 |
commit | 0e6eb62d96c4d96df8ba5af0cc64ea5e0a50807d (patch) | |
tree | dc23c0fa48b8e563edd009f9af6e4aa5123417f3 /sbin/fsck_msdosfs | |
parent | 3c8c50f955d2a33816a1e9b3af2636cda08b427f (diff) |
Write string constant differently to improve readability.
Reported by: rgrimes
Reviewed by: rgrimes, emaste
MFC after: 13 days
Differential Revision: https://reviews.freebsd.org/D19829
Notes
Notes:
svn path=/head/; revision=345976
Diffstat (limited to 'sbin/fsck_msdosfs')
-rw-r--r-- | sbin/fsck_msdosfs/dir.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index a532dcaad0ca..b990b0cd8537 100644 --- a/sbin/fsck_msdosfs/dir.c +++ b/sbin/fsck_msdosfs/dir.c @@ -444,10 +444,8 @@ checksize(struct bootblock *boot, struct fatEntry *fat, u_char *p, return FSOK; } -static const u_char dot_name[] = { - '.', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; -static const u_char dotdot_name[] = { - '.', '.',' ',' ',' ',' ',' ',' ',' ',' ',' ' }; +static const u_char dot_name[11] = ". "; +static const u_char dotdot_name[11] = ".. "; /* * Basic sanity check if the subdirectory have good '.' and '..' entries, |