]> granicus.if.org Git - sysstat/commitdiff
Merge branch 'ciz-master'
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 21 May 2015 19:27:30 +0000 (21:27 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 21 May 2015 19:27:30 +0000 (21:27 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
1  2 
common.c

diff --cc common.c
index d192678e5681ce028561a280d21eb707a7e8d667,ab1f5ee4738927a012adfd6293f35281ba05338c..a23155b3c9ea64bab2048b228cfc5593f823dda3
+++ b/common.c
@@@ -296,7 -296,9 +295,11 @@@ unsigned int get_devmap_major(void
  {
        FILE *fp;
        char line[128];
-       unsigned int dm_major = DEFAULT_DEVMAP_MAJOR;
 -      /* Linux uses 12 bits for the major number,
 -       * so this shouldn't match any real device */
 -      unsigned int dm_major = UINT_MAX;
++      /*
++       * Linux uses 12 bits for the major number,
++       * so this shouldn't match any real device.
++       */
++      unsigned int dm_major = ~0U;
  
        if ((fp = fopen(DEVICES, "r")) == NULL)
                return dm_major;