Signed-off-by: Paul Spooren <mail@aparcar.org>
static char fstype[16] = { 0 };
char *mountstr = NULL, *mp = "/", *pos, *tmp;
FILE *mounts;
static char fstype[16] = { 0 };
char *mountstr = NULL, *mp = "/", *pos, *tmp;
FILE *mounts;
if (initramfs)
return "initramfs";
if (initramfs)
return "initramfs";
if (!mounts)
return NULL;
if (!mounts)
return NULL;
- while ((nread = getline(&mountstr, &len, mounts)) != -1) {
- found = false;
-
+ while (getline(&mountstr, &len, mounts) != -1) {
pos = strchr(mountstr, ' ');
if (!pos)
continue;
pos = strchr(mountstr, ' ');
if (!pos)
continue;