More separation between posix_mode_t and mode_t.

This commit is contained in:
rocky
2005-11-06 20:02:39 +00:00
parent 18e8567d8a
commit 33b8449e7e
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: rock.h,v 1.12 2005/11/06 00:39:37 rocky Exp $
$Id: rock.h,v 1.13 2005/11/06 20:02:39 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
@@ -335,7 +335,7 @@ int get_rock_ridge_filename(iso9660_dir_t * de, /*out*/ char * retname,
/*!
Returns POSIX mode bitstring for a given file.
*/
posix_mode_t
mode_t
iso9660_get_posix_filemode_from_rock(const iso_rock_statbuf_t *rr);
/*!

View File

@@ -1,5 +1,5 @@
/*
$Id: rock.c,v 1.15 2005/11/06 00:39:37 rocky Exp $
$Id: rock.c,v 1.16 2005/11/06 20:02:39 rocky Exp $
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
Adapted from GNU/Linux fs/isofs/rock.c (C) 1992, 1993 Eric Youngdale
@@ -612,10 +612,10 @@ iso9660_get_rock_attr_str(posix_mode_t st_mode)
/*!
Returns POSIX mode bitstring for a given file.
*/
posix_mode_t
mode_t
iso9660_get_posix_filemode_from_rock(const iso_rock_statbuf_t *rr)
{
return rr->st_mode;
return (mode_t) rr->st_mode;
}