diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-09-08 21:04:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-09-08 21:04:54 -0400 |
| commit | 4bb7d4482d7b22fea694d7b387c2090fdc32ce83 (patch) | |
| tree | 7e1a052104bf9d5e8756281c601e0450fad2f5ed /lib/imsg.c | |
| parent | 714e135429aaca467bd2ed654edfe977b5cd1a9c (diff) | |
| parent | e10cfdaf51fd5662309eda11ff37dfac1d94abdf (diff) | |
Merge pull request #2994 from opensourcerouting/sa-warnings
fix remaining SA warnings
Diffstat (limited to 'lib/imsg.c')
| -rw-r--r-- | lib/imsg.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/imsg.c b/lib/imsg.c index 5424140720..935d137727 100644 --- a/lib/imsg.c +++ b/lib/imsg.c @@ -299,11 +299,10 @@ int imsg_get_fd(struct imsgbuf *ibuf) int fd; struct imsg_fd *ifd; - if ((ifd = TAILQ_FIRST(&ibuf->fds)) == NULL) + if ((ifd = TAILQ_POP_FIRST(&ibuf->fds, entry)) == NULL) return (-1); fd = ifd->fd; - TAILQ_REMOVE(&ibuf->fds, ifd, entry); free(ifd); return (fd); |
