Skip to content

Commit 809f536

Browse files
tkanteckmdcornu
authored andcommitted
igzip_cli: add missing 'void' keyword to some function prototypes
Signed-off-by: Tomasz Kantecki <[email protected]>
1 parent 561a419 commit 809f536

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

programs/igzip_cli.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,17 +446,17 @@ struct thread_pool {
446446
// Globals for thread pool
447447
struct thread_pool pool;
448448

449-
static inline int pool_has_space()
449+
static inline int pool_has_space(void)
450450
{
451451
return ((pool.head + 1) % MAX_JOBQUEUE) != pool.tail;
452452
}
453453

454-
static inline int pool_has_work()
454+
static inline int pool_has_work(void)
455455
{
456456
return (pool.queue != pool.head);
457457
}
458458

459-
int pool_get_work()
459+
int pool_get_work(void)
460460
{
461461
assert(pool.queue != pool.head);
462462
pool.queue = (pool.queue + 1) % MAX_JOBQUEUE;
@@ -532,7 +532,7 @@ void *thread_worker(void *none)
532532
pthread_exit(NULL);
533533
}
534534

535-
int pool_create()
535+
int pool_create(void)
536536
{
537537
int i;
538538
int nthreads = global_options.threads - 1;
@@ -547,7 +547,7 @@ int pool_create()
547547
return 0;
548548
}
549549

550-
void pool_quit()
550+
void pool_quit(void)
551551
{
552552
int i;
553553
pthread_mutex_lock(&pool.mutex);

0 commit comments

Comments
 (0)