Skip to content

Commit

Permalink
test commit fixing warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <[email protected]>
  • Loading branch information
aparcar authored and dangowrt committed Mar 20, 2024
1 parent 79f8cfa commit 428f40e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions system.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ static const char *system_rootfs_type(void) {
static char fstype[16] = { 0 };
char *mountstr = NULL, *mp = "/", *pos, *tmp;
FILE *mounts;
ssize_t nread;
size_t len = 0;
bool found;
bool found = false;

if (initramfs)
return "initramfs";
Expand All @@ -65,9 +64,7 @@ static const char *system_rootfs_type(void) {
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;
Expand Down

0 comments on commit 428f40e

Please sign in to comment.