cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] cluster/gfs2/libgfs2 misc.c
@ 2008-02-15  8:01 fabbione
  0 siblings, 0 replies; only message in thread
From: fabbione @ 2008-02-15  8:01 UTC (permalink / raw)
  To: cluster-devel.redhat.com

CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	fabbione at sourceware.org	2008-02-15 08:01:43

Modified files:
	gfs2/libgfs2   : misc.c 

Log message:
	Fix http://bugs.debian.org/465790

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/libgfs2/misc.c.diff?cvsroot=cluster&r1=1.6&r2=1.7

--- cluster/gfs2/libgfs2/misc.c	2007/11/13 17:03:40	1.6
+++ cluster/gfs2/libgfs2/misc.c	2008/02/15 08:01:43	1.7
@@ -27,6 +27,7 @@
 #include <sys/file.h>
 #include <dirent.h>
 #include <linux/kdev_t.h>
+#include <sys/sysmacros.h>
 
 #include "libgfs2.h"
 
@@ -617,8 +618,8 @@
 		return NULL;
 
 	memset(device_id, 0, sizeof(device_id));
-	sprintf(device_id, "%u:%u", (uint32_t)MAJOR(statbuf.st_dev),
-		(uint32_t)MINOR(statbuf.st_dev));
+	sprintf(device_id, "%i:%i", major(statbuf.st_dev),
+		minor(statbuf.st_dev));
 
 	d = opendir(SYS_BASE);
 	if (!d)



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-15  8:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-15  8:01 [Cluster-devel] cluster/gfs2/libgfs2 misc.c fabbione

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).