summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-20 13:02:14 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2008-07-20 13:02:14 +0000
commit58d5fd4e5c768d97cf3568011432553e93e74168 (patch)
tree588e2410d478d0031d4c30edfa4a339f9af844e3 /libnetfs
parentbca4197a8aa8319f5d160fc2fabbd1362a8ac346 (diff)
2008-07-19 Flávio Cruz <flaviocruz@gmail.com>
* file-get-translator.c (netfs_S_file_get_translator): Call major() and minor() macros.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/ChangeLog5
-rw-r--r--libnetfs/file-get-translator.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/libnetfs/ChangeLog b/libnetfs/ChangeLog
index da9b28c9..e80b1991 100644
--- a/libnetfs/ChangeLog
+++ b/libnetfs/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-19 Flávio Cruz <flaviocruz@gmail.com>
+
+ * file-get-translator.c (netfs_S_file_get_translator): Call major()
+ and minor() macros.
+
2006-06-15 Thomas Schwinge <tschwinge@gnu.org>
* io-seek.c (netfs_S_io_seek): Return EINVAL if file pointer would
diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c
index 3108acd7..698ebe3b 100644
--- a/libnetfs/file-get-translator.c
+++ b/libnetfs/file-get-translator.c
@@ -71,8 +71,8 @@ netfs_S_file_get_translator (struct protid *user,
(S_ISCHR (np->nn_stat.st_mode)
? _HURD_CHRDEV
: _HURD_BLKDEV),
- '\0', (np->nn_stat.st_rdev >> 8) & 0377,
- '\0', (np->nn_stat.st_rdev) & 0377);
+ '\0', major (np->nn_stat.st_rdev),
+ '\0', minor (np->nn_stat.st_rdev));
if (buflen < 0)
err = ENOMEM;
else