From 0e6eb62d96c4d96df8ba5af0cc64ea5e0a50807d Mon Sep 17 00:00:00 2001 From: Xin LI Date: Sat, 6 Apr 2019 03:42:15 +0000 Subject: [PATCH] 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 --- sbin/fsck_msdosfs/dir.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c index a532dcaad0c..b990b0cd853 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,