From: fabbione@sourceware.org <fabbione@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/gfs2/libgfs2 misc.c
Date: 15 Feb 2008 08:01:44 -0000 [thread overview]
Message-ID: <20080215080144.17023.qmail@sourceware.org> (raw)
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)
reply other threads:[~2008-02-15 8:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080215080144.17023.qmail@sourceware.org \
--to=fabbione@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).