## Warn about functions not declared at start of line.
if ($in_func_head ||
($fn !~ /\.h$/ && /^[a-zA-Z0-9_]/ &&
- ! /^(?:static )?(?:typedef|struct|union)[^\(]*$/ &&
+ ! /^(?:const |static )*(?:typedef|struct|union)[^\(]*$/ &&
! /= *\{$/ && ! /;$/)) {
if (/.\{$/){
print "fn() {:$fn:$.\n";
#ifdef HAVE_EVENT_GET_VERSION
ver = event_get_version();
#endif
- tor_assert(ver); /* If we're 1.1b or later, we'd better have get_version()*/
+ /* If we're 1.1b or later, we'd better have get_version() */
+ tor_assert(ver);
log(LOG_NOTICE, LD_GENERAL, "Enabling experimental OS X kqueue support "
"with libevent %s. If this turns out to not work, "
"set the environment variable EVENT_NOKQUEUE, and tell the Tor "
pnl.sport = htons(conn->_base.port);
pnl.daddr.v4.s_addr = proxy_addr.sin_addr.s_addr;
pnl.dport = proxy_addr.sin_port;
-
+
pf = get_pf_socket();
if (pf<0)
return -1;
"650 STREAM %lu %s %lu %s\r\n",
(unsigned long)conn->global_identifier, status,
origin_circ?
- (unsigned long)origin_circ->global_identifier : 0ul,
+ (unsigned long)origin_circ->global_identifier : 0ul,
buf);
/* XXX need to specify its intended exit, etc? */
}
if (resolve->state == CACHE_STATE_PENDING) {
log_debug(LD_EXIT,
- "Expiring a dns resolve %s that's still pending. Forgot to cull"
- " it? DNS resolve didn't tell us about the timeout?",
+ "Expiring a dns resolve %s that's still pending. Forgot to "
+ "cull it? DNS resolve didn't tell us about the timeout?",
escaped_safe_str(resolve->address));
} else if (resolve->state == CACHE_STATE_CACHED_VALID ||
resolve->state == CACHE_STATE_CACHED_FAILED) {