/* vi: set sw=4 ts=4: */
-#include "internal.h"
+#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
/* Bummer. fall back on trying the /proc filesystem */
&& (mountTable = setmntent("/proc/mounts", "r")) == 0) {
#endif
- perror(mtab_file);
+ perror_msg("%s", mtab_file);
return;
}
}
endmntent(mountTable);
} else if (errno != EROFS)
- perror(mtab_file);
+ perror_msg("%s", mtab_file);
}
void write_mtab(char *blockDevice, char *directory,
struct mntent m;
if (mountTable == 0) {
- perror(mtab_file);
+ perror_msg("%s", mtab_file);
return;
}
if (mountTable) {
#ifdef BB_FEATURE_USE_PROCFS
if (filesystemType == 0) {
- struct mntent *p = findMountPoint(blockDevice, "/proc/mounts");
+ struct mntent *p = find_mount_point(blockDevice, "/proc/mounts");
if (p && p->mnt_type)
filesystemType = p->mnt_type;