#define NO_WINDRVR 1
#undef DEBUG
+#ifdef DEBUG
void hexdump(unsigned char *buf, int len) {
int i;
fprintf(stderr,"\n");
}
}
+#endif
int usb_deviceinfo(unsigned char *buf) {
int i,j,k,l;
it->dwCounter = 1;
} else {
pthread_mutex_lock(&int_wait);
+ pthread_mutex_unlock(&int_wait);
}
} else {
pthread_mutex_lock(&int_wait);
+ pthread_mutex_unlock(&int_wait);
}
#endif
return ret;
}
-int ioctl(int fd, int request, ...)
-{
+int ioctl(int fd, int request, ...) {
va_list args;
void *argp;
int ret;
return ret;
}
-typedef int (*open_funcptr_t) (const char *, int, mode_t);
-
-int open (const char *pathname, int flags, ...)
-{
- static open_funcptr_t func = NULL;
+int open (const char *pathname, int flags, ...) {
+ static int (*func) (const char *, int, mode_t) = NULL;
mode_t mode = 0;
va_list args;
int fd;
if (!func)
- func = (open_funcptr_t) dlsym (REAL_LIBC, "open");
+ func = (int (*) (const char *, int, mode_t)) dlsym (REAL_LIBC, "open");
if (flags & O_CREAT) {
va_start(args, flags);