diff --git a/KD100.c b/KD100.c index e463674..6f0bdd7 100644 --- a/KD100.c +++ b/KD100.c @@ -1,5 +1,5 @@ /* - V1.4.1 + V1.4.2 https://github.com/mckset/KD100.git KD100 Linux driver for X11 desktops Other devices can be supported by modifying the code to read data received by the device @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include int keycodes[] = {1, 2, 4, 8, 16, 32, 64, 128, 129, 130, 132, 136, 144, 160, 192, 256, 257, 258, 260, 641, 642}; @@ -422,7 +422,7 @@ void GetDevice(int debug, int accept, int dry){ void Handler(char* key, int type){ if (strcmp(key, "NULL") == 0) - return 0; + return; char* cmd = ""; char mouse = 'a'; @@ -455,7 +455,7 @@ void Handler(char* key, int type){ temp[strlen(cmd)+2] = '\0'; } system(temp); - } + } } char* Substring(char* in, int start, int end){ @@ -510,7 +510,8 @@ int main(int args, char *in[]){ } } - libusb_context **ctx; + + libusb_context *ctx; err = libusb_init(&ctx); if (err < 0){ printf("Error: %d\n", err); diff --git a/Makefile b/Makefile index fbc4a58..7db33de 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,3 @@ install: else\ ${CC} KD100.c ${FLAGS} -o KD100;\ fi - - -clean: - rm -f KD100.c