mirror of
https://github.com/systemd/systemd.git
synced 2025-03-25 18:50:18 +03:00
systemadm: fix signed comparison issue
This commit is contained in:
parent
82ba9f087d
commit
17d37c2857
@ -120,7 +120,7 @@ int main (string[] args) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (uint i = 2; i < args.length; i++)
|
||||
for (int i = 2; i < args.length; i++)
|
||||
manager.load_unit(args[i]);
|
||||
|
||||
} else if (args[1] == "cancel") {
|
||||
@ -130,7 +130,7 @@ int main (string[] args) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
for (uint i = 2; i < args.length; i++) {
|
||||
for (int i = 2; i < args.length; i++) {
|
||||
uint32 id;
|
||||
|
||||
if (args[i].scanf("%u", out id) != 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user