diff --git a/include/cdio/rock.h b/include/cdio/rock.h index 8bb5ca0b..2460d932 100644 --- a/include/cdio/rock.h +++ b/include/cdio/rock.h @@ -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 @@ -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); /*! diff --git a/lib/iso9660/rock.c b/lib/iso9660/rock.c index 7d8309a0..49224886 100644 --- a/lib/iso9660/rock.c +++ b/lib/iso9660/rock.c @@ -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 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; }