| 108 | } |
| 109 | |
| 110 | static int should_check(int port) |
| 111 | { |
| 112 | int i; |
| 113 | |
| 114 | if (port <= 0) { |
| 115 | acl_msg_error("%s(%d), %s: invalid port: %d", |
| 116 | __FILE__, __LINE__, __FUNCTION__, port); |
| 117 | return 0; |
| 118 | } |
| 119 | |
| 120 | for (i = 0; i < __monitor_ports_cur; i++) { |
| 121 | if (__monitor_ports[i] == port) |
| 122 | return 1; |
| 123 | } |
| 124 | |
| 125 | return 0; |
| 126 | } |
| 127 | |
| 128 | int close(int fd) |
| 129 | { |
no test coverage detected
searching dependent graphs…