mirror of https://github.com/neutrinolabs/xrdp
Small fixes found by static analyzers.
This commit is contained in:
parent
0a669c5b06
commit
12c46664a2
|
@ -114,7 +114,7 @@ internal_log_lvl2str(const enum logLevels lvl, char *str);
|
|||
*
|
||||
*/
|
||||
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
|
||||
|
|
|
@ -136,7 +136,7 @@ int main(int argc, char **argv)
|
|||
fprintf(outf, "[%s]\n", sections[idx]);
|
||||
e.state = states[idx];
|
||||
|
||||
for (i = 8; i <= 137; i++) /* Keycodes */
|
||||
for (i = 8; i < 137; i++) /* Keycodes */
|
||||
{
|
||||
if (is_evdev)
|
||||
e.keycode = xfree86_to_evdev[i-8];
|
||||
|
|
|
@ -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[7] = 0x55;
|
||||
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->bg_color = self->black;
|
||||
self->painter->fg_color = self->white;
|
||||
|
|
Loading…
Reference in New Issue