Small fixes found by static analyzers.

This commit is contained in:
Rafał Mikrut 2020-03-20 11:21:34 +01:00
parent 0a669c5b06
commit 12c46664a2
3 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str);
* *
*/ */
enum logLevels enum logLevels
internal_log_text2level(const char *s); internal_log_text2level(const char *buf);
/** /**
* A function that init our struct that holds all state and * A function that init our struct that holds all state and

View File

@ -136,7 +136,7 @@ int main(int argc, char **argv)
fprintf(outf, "[%s]\n", sections[idx]); fprintf(outf, "[%s]\n", sections[idx]);
e.state = states[idx]; e.state = states[idx];
for (i = 8; i <= 137; i++) /* Keycodes */ for (i = 8; i < 137; i++) /* Keycodes */
{ {
if (is_evdev) if (is_evdev)
e.keycode = xfree86_to_evdev[i-8]; e.keycode = xfree86_to_evdev[i-8];

View File

@ -913,7 +913,7 @@ xrdp_wm_xor_pat(struct xrdp_wm *self, int x, int y, int cx, int cy)
self->painter->brush.pattern[6] = 0xaa; self->painter->brush.pattern[6] = 0xaa;
self->painter->brush.pattern[7] = 0x55; self->painter->brush.pattern[7] = 0x55;
self->painter->brush.x_origin = 0; self->painter->brush.x_origin = 0;
self->painter->brush.x_origin = 0; self->painter->brush.y_origin = 0;
self->painter->brush.style = 3; self->painter->brush.style = 3;
self->painter->bg_color = self->black; self->painter->bg_color = self->black;
self->painter->fg_color = self->white; self->painter->fg_color = self->white;