diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dev.c | 6 | ||||
-rw-r--r-- | src/lib/lockfile.c | 6 | ||||
-rw-r--r-- | src/lib/shm_rdrbuff.c | 4 |
3 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index 8bc840a5..a68af46e 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -1466,7 +1466,7 @@ ssize_t flow_read(int fd, /* fqueue functions. */ -struct flow_set * fset_create() +struct flow_set * fset_create(void) { struct flow_set * set; @@ -1509,7 +1509,7 @@ void fset_destroy(struct flow_set * set) free(set); } -struct fqueue * fqueue_create() +struct fqueue * fqueue_create(void) { struct fqueue * fq = malloc(sizeof(*fq)); if (fq == NULL) @@ -1929,7 +1929,7 @@ int ipcp_flow_read(int fd, assert(flow->flow_id >= 0); - while ((idx = frcti_queued_pdu(flow->frcti)) < 0) { + while (frcti_queued_pdu(flow->frcti) < 0) { pthread_rwlock_unlock(&ai.lock); idx = flow_rx_sdb(flow, sdb, false, NULL); diff --git a/src/lib/lockfile.c b/src/lib/lockfile.c index 65970681..a340a98f 100644 --- a/src/lib/lockfile.c +++ b/src/lib/lockfile.c @@ -41,7 +41,8 @@ struct lockfile { pid_t * pid; }; -struct lockfile * lockfile_create() { +struct lockfile * lockfile_create(void) +{ int fd; mode_t mask; struct lockfile * lf = malloc(sizeof(*lf)); @@ -82,7 +83,8 @@ struct lockfile * lockfile_create() { return lf; } -struct lockfile * lockfile_open() { +struct lockfile * lockfile_open(void) +{ int fd; struct lockfile * lf = malloc(sizeof(*lf)); if (lf == NULL) diff --git a/src/lib/shm_rdrbuff.c b/src/lib/shm_rdrbuff.c index 23a2ebfc..3fe36766 100644 --- a/src/lib/shm_rdrbuff.c +++ b/src/lib/shm_rdrbuff.c @@ -205,7 +205,7 @@ static struct shm_rdrbuff * rdrb_create(int flags) return NULL; } -struct shm_rdrbuff * shm_rdrbuff_create() +struct shm_rdrbuff * shm_rdrbuff_create(void) { struct shm_rdrbuff * rdrb; mode_t mask; @@ -263,7 +263,7 @@ struct shm_rdrbuff * shm_rdrbuff_create() return NULL; } -struct shm_rdrbuff * shm_rdrbuff_open() +struct shm_rdrbuff * shm_rdrbuff_open(void) { return rdrb_create(O_RDWR); } |