diff options
author | Tim Wiederhake <twied@gmx.net> | 2024-01-20 16:07:00 +0100 |
---|---|---|
committer | Tim Wiederhake <twied@gmx.net> | 2024-01-20 16:07:00 +0100 |
commit | c5a63751f8b4eab72794e56365ead929023f2b94 (patch) | |
tree | df13c5ec28b27bb1b02a06c214b0b889fe3f174e /src/parse.c | |
parent | 6ea386bd98a737a9f54e2ca4216adf45868fd6e4 (diff) |
Remove global variables JunkX, JunkY
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
Diffstat (limited to 'src/parse.c')
-rw-r--r-- | src/parse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c index 3a93806..eae817e 100644 --- a/src/parse.c +++ b/src/parse.c @@ -750,6 +750,7 @@ do_string_keyword(int keyword, char *s) unsigned width = 0; unsigned height = 0; unsigned mask = 0; + int dummy = 0; switch (keyword) { case kws_UsePPosition: @@ -801,7 +802,7 @@ do_string_keyword(int keyword, char *s) return 1; case kws_MaxWindowSize: - mask = (unsigned) XParseGeometry(s, &JunkX, &JunkY, &width, &height); + mask = (unsigned) XParseGeometry(s, &dummy, &dummy, &width, &height); if ((mask & (WidthValue | HeightValue)) != (WidthValue | HeightValue)) { parseWarning("bad MaxWindowSize \"%s\"", s); |