mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Fix errors/warnings when compiling with -std=c++11
These are compatibility changes only.
This commit is contained in:
parent
a26c674dfd
commit
e60ceea87c
15 changed files with 33 additions and 32 deletions
4
src/cq.c
4
src/cq.c
|
@ -357,7 +357,7 @@ cq_remove(register struct cq_handle *hp, register double pri,
|
|||
|
||||
/* The priority must be positive and the cookie non-null */
|
||||
if (pri <= 0.0 || cookie == NULL)
|
||||
return (-0);
|
||||
return (0);
|
||||
|
||||
bp = hp->buckets + PRI2BUCKET(hp, pri);
|
||||
if (! BUCKETINUSE(bp))
|
||||
|
@ -370,7 +370,7 @@ cq_remove(register struct cq_handle *hp, register double pri,
|
|||
}
|
||||
|
||||
if ( ! bp )
|
||||
return (-0);
|
||||
return (0);
|
||||
|
||||
/* Unlink entry */
|
||||
if ( ! bp2 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue