syslogd: Use common nomenclature for next pointer

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-13 18:39:41 +01:00
parent 6350bf2474
commit 4192e543a5
2 changed files with 4 additions and 4 deletions

View File

@ -187,7 +187,7 @@ static int addpeer(struct peer *pe0)
if (pe == NULL) if (pe == NULL)
err(1, "malloc failed"); err(1, "malloc failed");
*pe = *pe0; *pe = *pe0;
SIMPLEQ_INSERT_TAIL(&pqueue, pe, next); SIMPLEQ_INSERT_TAIL(&pqueue, pe, pe_link);
return (0); return (0);
} }
@ -2122,7 +2122,7 @@ void init(void)
/* Only once at startup */ /* Only once at startup */
once = 0; once = 0;
SIMPLEQ_FOREACH(pe, &pqueue, next) { SIMPLEQ_FOREACH(pe, &pqueue, pe_link) {
if (pe->pe_name && pe->pe_name[0] == '/') if (pe->pe_name && pe->pe_name[0] == '/')
create_unix_socket(pe); create_unix_socket(pe);
else if (SecureMode < 2) else if (SecureMode < 2)

View File

@ -186,11 +186,11 @@
* Struct to hold records of peers and sockets * Struct to hold records of peers and sockets
*/ */
struct peer { struct peer {
SIMPLEQ_ENTRY(peer) pe_link;
const char *pe_name; const char *pe_name;
const char *pe_serv; const char *pe_serv;
mode_t pe_mode; mode_t pe_mode;
int pe_sock;
SIMPLEQ_ENTRY(peer) next;
}; };
/* /*