diff options
| author | Christian Marangi | 2024-01-15 16:28:07 +0000 |
|---|---|---|
| committer | Christian Marangi | 2024-01-15 16:28:07 +0000 |
| commit | 325d63d67006c5526ab9b0fbc62329da48aa93af (patch) | |
| tree | 2fa579454d2bb145e5a21c301315438017ca4bea | |
| parent | 1858a492c300a0066a91f8096a858231c3cbd246 (diff) | |
| download | fstools-325d63d67006c5526ab9b0fbc62329da48aa93af.tar.gz | |
mount_root: fix compilation error for wrong condition
While reworking this to new implementation, a broken and old commit
slipped in by mistake.
Fix compilation error for wrong condition.
mount_root.c: In function 'main':
mount_root.c:131:23: error: expected expression before '||' token
131 | if (argc < 2) || (!strcmp(argv[1], "start"))
| ^~
mount_root.c: At top level:
mount_root.c:31:1: error: 'start' defined but not used [-Werror=unused-function]
31 | start(int argc, char *argv[3])
| ^~~~~
cc1: all warnings being treated as errors
Fixes: 1a5695925ecf ("mount_root: add support for passing args to mount_root start")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rw-r--r-- | mount_root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mount_root.c b/mount_root.c index e7c398f..c8ffe58 100644 --- a/mount_root.c +++ b/mount_root.c @@ -128,7 +128,7 @@ done(int argc, char *argv[1]) int main(int argc, char **argv) { - if (argc < 2) || (!strcmp(argv[1], "start")) + if (argc < 2 || !strcmp(argv[1], "start")) return start(argc, argv); if (!strcmp(argv[1], "ram")) return ramoverlay(); |