Browse Source

(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.

Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

PR:		137213
Submitted by:	Eygene Ryabinkin (initial version)
MFC after:	1 month
tags/ggatessh-v1.0.0
antoine 15 years ago
parent
commit
2755b7459e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ggated/ggated.c

+ 2
- 2
ggated/ggated.c View File

@@ -99,8 +99,8 @@ static TAILQ_HEAD(, ggd_request) outqueue = TAILQ_HEAD_INITIALIZER(outqueue);
pthread_mutex_t inqueue_mtx, outqueue_mtx; pthread_mutex_t inqueue_mtx, outqueue_mtx;
pthread_cond_t inqueue_cond, outqueue_cond; pthread_cond_t inqueue_cond, outqueue_cond;


static SLIST_HEAD(, ggd_export) exports = SLIST_HEAD_INITIALIZER(&exports);
static LIST_HEAD(, ggd_connection) connections = LIST_HEAD_INITIALIZER(&connection);
static SLIST_HEAD(, ggd_export) exports = SLIST_HEAD_INITIALIZER(exports);
static LIST_HEAD(, ggd_connection) connections = LIST_HEAD_INITIALIZER(connections);


static void *recv_thread(void *arg); static void *recv_thread(void *arg);
static void *disk_thread(void *arg); static void *disk_thread(void *arg);


Loading…
Cancel
Save