-/* $OpenBSD: fdisk.c,v 1.12 1997/01/31 11:59:05 deraadt Exp $ */
+/* $OpenBSD: fdisk.c,v 1.13 1997/04/02 05:30:05 mickey Exp $ */
/* $NetBSD: fdisk.c,v 1.11 1995/10/04 23:11:19 ghudson Exp $ */
/*
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: fdisk.c,v 1.12 1997/01/31 11:59:05 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: fdisk.c,v 1.13 1997/04/02 05:30:05 mickey Exp $";
#endif /* not lint */
#include <sys/param.h>
break;
}
}
- if (heads != -1)
+ if (heads > 0)
break;
}
- if (heads == -1)
+ if (heads <= 0)
return;
/* Now figure out the number of sectors from a single mapping. */