diff options
Diffstat (limited to 'include/linux/dccp.h')
-rw-r--r-- | include/linux/dccp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h index 221025423e6c..61d042bbbf60 100644 --- a/include/linux/dccp.h +++ b/include/linux/dccp.h | |||
@@ -202,16 +202,16 @@ struct dccp_service_list { | |||
202 | #define DCCP_SERVICE_INVALID_VALUE htonl((__u32)-1) | 202 | #define DCCP_SERVICE_INVALID_VALUE htonl((__u32)-1) |
203 | #define DCCP_SERVICE_CODE_IS_ABSENT 0 | 203 | #define DCCP_SERVICE_CODE_IS_ABSENT 0 |
204 | 204 | ||
205 | static inline int dccp_list_has_service(const struct dccp_service_list *sl, | 205 | static inline bool dccp_list_has_service(const struct dccp_service_list *sl, |
206 | const __be32 service) | 206 | const __be32 service) |
207 | { | 207 | { |
208 | if (likely(sl != NULL)) { | 208 | if (likely(sl != NULL)) { |
209 | u32 i = sl->dccpsl_nr; | 209 | u32 i = sl->dccpsl_nr; |
210 | while (i--) | 210 | while (i--) |
211 | if (sl->dccpsl_list[i] == service) | 211 | if (sl->dccpsl_list[i] == service) |
212 | return 1; | 212 | return true; |
213 | } | 213 | } |
214 | return 0; | 214 | return false; |
215 | } | 215 | } |
216 | 216 | ||
217 | struct dccp_ackvec; | 217 | struct dccp_ackvec; |