Page MenuHomeFreeBSD

D1188.diff
No OneTemporary

D1188.diff

Index: head/sys/contrib/ngatm/netnatm/saal/saal_sscop.c
===================================================================
--- head/sys/contrib/ngatm/netnatm/saal/saal_sscop.c
+++ head/sys/contrib/ngatm/netnatm/saal/saal_sscop.c
@@ -163,18 +163,17 @@
} \
} while(0)
-
-#define QFIND(Q,RN) \
- ({ \
- struct sscop_msg *_msg = NULL, *_m; \
- MSGQ_FOREACH(_m, (Q)) { \
- if(_m->seqno == (RN)) { \
- _msg = _m; \
- break; \
- } \
- } \
- _msg; \
- })
+static inline struct sscop_msg *QFIND(sscop_msgq_head_t *q, u_int rn)
+{
+ struct sscop_msg *msg = NULL, *m;
+ MSGQ_FOREACH(m, q) {
+ if(m->seqno == rn) {
+ msg = m;
+ break;
+ }
+ }
+ return msg;
+}
#define QINSERT(Q,M) \
do { \

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 1:07 PM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15588174
Default Alt Text
D1188.diff (789 B)

Event Timeline