Fix warnings

This commit is contained in:
psy 2019-06-02 17:46:09 +02:00
parent 57f80410fb
commit b47198fdc0
1 changed files with 3 additions and 3 deletions

6
main.c
View File

@ -17,8 +17,8 @@ void moveCursor() {
dpy = XOpenDisplay(0);
Screen *screen = XScreenOfDisplay(dpy, 0);
root_window = XRootWindow(dpy, 0);
int width = XWidthOfScreen(screen);
int height = XHeightOfScreen(screen);
unsigned int width = (unsigned int) XWidthOfScreen(screen);
unsigned int height = (unsigned int) XHeightOfScreen(screen);
int destX = getRandom(0, width);
int destY = getRandom(0, height);
@ -29,7 +29,7 @@ void moveCursor() {
int main() {
while(true) {
sleep(getRandom(0, 10));
sleep(getRandom(60, 600));
if (getRandom(0, 100) > 50) {
continue;
}