]> err.no Git - util-linux/commitdiff
fdisk: fix use of non portable type
authorFrançois Revol <revol@free.fr>
Mon, 26 Jul 2010 09:37:19 +0000 (11:37 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Jul 2010 09:37:19 +0000 (11:37 +0200)
Signed-off-by: François Revol <revol@free.fr>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c

index 8713f135338da64194bd8cf8e3c82275dac7547f..6572c51dd677eb593d3503c47cfa6586dce1f507 100644 (file)
@@ -1801,7 +1801,7 @@ change_sysid(void) {
  * Lubkin Oct.  1991). */
 
 static void
-long2chs(ulong ls, unsigned int *c, unsigned int *h, unsigned int *s) {
+long2chs(unsigned long ls, unsigned int *c, unsigned int *h, unsigned int *s) {
        int spc = heads * sectors;
 
        *c = ls / spc;