mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
Fix strcmp use
This commit is contained in:
parent
b31ce4220c
commit
4bc1cc49d5
1 changed files with 2 additions and 2 deletions
|
@ -121,7 +121,7 @@ int main(int argc, char **argv) {
|
||||||
};
|
};
|
||||||
found = false;
|
found = false;
|
||||||
for (size_t i = 0; i < sizeof(layers) / sizeof(layers[0]); ++i) {
|
for (size_t i = 0; i < sizeof(layers) / sizeof(layers[0]); ++i) {
|
||||||
if (strcmp(optarg, layers[i].name)) {
|
if (strcmp(optarg, layers[i].name) == 0) {
|
||||||
layer = layers[i].value;
|
layer = layers[i].value;
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
@ -145,7 +145,7 @@ int main(int argc, char **argv) {
|
||||||
};
|
};
|
||||||
found = false;
|
found = false;
|
||||||
for (size_t i = 0; i < sizeof(anchors) / sizeof(anchors[0]); ++i) {
|
for (size_t i = 0; i < sizeof(anchors) / sizeof(anchors[0]); ++i) {
|
||||||
if (strcmp(optarg, anchors[i].name)) {
|
if (strcmp(optarg, anchors[i].name) == 0) {
|
||||||
anchor |= anchors[i].value;
|
anchor |= anchors[i].value;
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue