FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 02-15-2008, 07:01 AM
 
Default cluster/gfs2/libgfs2 misc.c

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: fabbione@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)
 

Thread Tools




All times are GMT. The time now is 05:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org