src/mkfs_msdos.c
/*
 * Check a disk geometry value.
 */
Check a disk geometry value.
Check a disk geometry value .
static int
ckgeom(const char *fname, u_int val, const char *msg)
{
    if (!val) {
	warnx("%s: no default %s", fname, msg);
	return -1;
    }
    if (val > MAXU16) {
	warnx("%s: illegal %s %d", fname, msg, val);
	return -1;
    }
    return 0;
}
static int ckgeom ( const char * fname , u_int val , const char * msg ) { if ( ! val ) { warnx ( " " , fname , msg ) ; return -1 ; } if ( val > MAXU16 ) { warnx ( " " , fname , msg , val ) ; return -1 ; } return 0 ; }
Check a disk geometry value.
Check a disk geometry value .