View | Details | Raw Unified | Return to bug 221784 | Differences between
and this patch

Collapse All | Expand All

(-)files/patch-t_gen-stat.c (+34 lines)
Line 0 Link Here
1
--- t/gen-stat.c	2006-06-28 11:54:00.000000000 +0000
2
+++ ../../gen-stat.c	2017-10-22 15:00:16.002394000 +0000
3
@@ -113,13 +113,13 @@ static void constants(void)
4
 
5
 #ifdef _HAVE_MAJOR_MINOR
6
 
7
-#define MASK(bit) ( ((unsigned long)1) << (bit) )
8
+#define MASK(bit) ( ((dev_t)1) << (bit) )
9
 
10
-static void test(unsigned long (*f)(unsigned long),
11
+static void test(unsigned long (*f)(dev_t),
12
 		 unsigned long *_mask, unsigned int *_shift)
13
 {
14
     unsigned int shift;
15
-    unsigned long mask, old_mask;
16
+    dev_t mask, old_mask;
17
 
18
     for(shift=0; mask=MASK(shift), f(mask) == 0; ++shift)
19
 	;
20
@@ -137,12 +137,12 @@ static void test(unsigned long (*f)(unsigned long),
21
 }
22
 
23
 
24
-static unsigned long Major( unsigned long dev )
25
+static unsigned long Major( dev_t dev )
26
 {
27
     return major(dev);
28
 }
29
 
30
-static unsigned long Minor( unsigned long dev )
31
+static unsigned long Minor( dev_t dev )
32
 {
33
     return minor(dev);
34
 }

Return to bug 221784