rdtk: Fixed warnings, added assertions

This commit is contained in:
Armin Novak
2021-06-18 10:01:52 +02:00
committed by akallabeth
parent cbb39709b9
commit 0b0b716dd6
14 changed files with 170 additions and 139 deletions

View File

@@ -20,7 +20,9 @@
#include "config.h"
#endif
#include <freerdp/log.h>
#include <stdint.h>
#include <winpr/wlog.h>
#include <rdtk/rdtk.h>
#include <X11/Xlib.h>
@@ -36,7 +38,7 @@ int main(int argc, char** argv)
int x, y;
int width;
int height;
BYTE* buffer;
uint8_t* buffer;
int scanline;
int pf_count;
XEvent event;
@@ -100,7 +102,7 @@ int main(int argc, char** argv)
return 1;
scanline = width * 4;
buffer = (BYTE*)calloc(height, scanline);
buffer = (uint8_t*)calloc(height, scanline);
if (!buffer)
return 1;