Rather than hardcoding a string and limiting the comparison to these

characters use the defined constant so that in case of change this
would not break.

Reviewed by:		allanjude
Differential Revision:	https://reviews.freebsd.org/D3340
MFC after:		2 weeks
This commit is contained in:
Bjoern A. Zeeb 2015-08-10 10:29:32 +00:00
parent ac7d1ed24c
commit f2dedc73e0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=286569

View File

@ -61,7 +61,7 @@ fstyp_geli(FILE *fp, char *label __unused, size_t labelsize __unused)
if (error)
goto gelierr;
if (strncmp(md.md_magic, "GEOM::ELI", 9) == 0) {
if (strcmp(md.md_magic, G_ELI_MAGIC) == 0) {
free(buf);
return (0);
}