@@ -314,7 +314,7 @@ initallfs(char *mtab)
mi = 0;
fs = fsbase;
- if (platform_mntent_open(&cursor, mtab) != 0){
+ if (mntent_open(&cursor, mtab) != 0){
fprintf(stderr, "Error: can't get mntent entries.\n");
exit(1);
}
@@ -166,7 +166,7 @@ struct mntent_cursor {
FILE *mtabp;
};
-static inline int platform_mntent_open(struct mntent_cursor * cursor, char *mtab)
+static inline int mntent_open(struct mntent_cursor * cursor, char *mtab)
{
cursor->mtabp = setmntent(mtab, "r");
if (!cursor->mtabp) {
@@ -176,6 +176,11 @@ static inline int platform_mntent_open(struct mntent_cursor * cursor, char *mtab
return 0;
}
+static inline int platform_mntent_open(struct mntent_cursor * cursor, char *mtab)
+{
+ return mntent_open(cursor, mtab);
+}
+
static inline struct mntent * platform_mntent_next(struct mntent_cursor * cursor)
{
return getmntent(cursor->mtabp);