summaryrefslogtreecommitdiff
path: root/libnetfs/file-get-translator.c
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/file-get-translator.c
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/file-get-translator.c')
-rw-r--r--libnetfs/file-get-translator.c4
1 files changed, 2 insertions, 2 deletions
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