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
This commit is contained in:
Xin LI 2019-04-06 03:42:15 +00:00
parent 3c8c50f955
commit 0e6eb62d96

View File

@ -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,