kopia lustrzana https://gitlab.com/sane-project/backends
kvs40xx: Return NULL from read_data()
Functions called by pthread_create() have the return type (void *). However, the return statements in read_data() use a value of type SANE_Status rather than a pointer, which causes a compiler warning. This return value is never actually used, so return NULL instead.merge-requests/722/head
rodzic
31cefeb659
commit
ff4114a795
|
@ -542,10 +542,10 @@ static void * read_data (void *arg)
|
|||
sane_get_parameters(s, NULL);
|
||||
|
||||
s->page++;
|
||||
return SANE_STATUS_GOOD;
|
||||
return NULL;
|
||||
err:
|
||||
s->scanning = 0;
|
||||
return (void *) st;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/* Start scanning */
|
||||
|
|
Ładowanie…
Reference in New Issue