projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79f8cfa
)
test commit fixing warnings
author
Paul Spooren
<
[email protected]
>
Thu, 26 Oct 2023 07:28:11 +0000
(09:28 +0200)
committer
Daniel Golle
<
[email protected]
>
Wed, 20 Mar 2024 18:47:29 +0000
(18:47 +0000)
Signed-off-by: Paul Spooren <
[email protected]
>
system.c
patch
|
blob
|
history
diff --git
a/system.c
b/system.c
index 8df606f7abada6c8c67a3301238321d6b6d580a1..21ec3cdc07a2e1b1b17a292bb4a6b5ab0d478069 100644
(file)
--- a/
system.c
+++ b/
system.c
@@
-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";
@@
-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;