Changeset 510
- Timestamp:
- 07/29/09 09:31:11 (3 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
configure (modified) (10 diffs)
-
src/ocat.c (modified) (1 diff)
-
src/ocatctrl.c (modified) (5 diffs)
-
src/ocateth.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r508 r510 4 4 - updated hosts.onioncat 5 5 - pid file creation optional 6 - base development environment changed to OpenBSD 4.5 7 - some type conversions fixed 8 - fd 0,1,2 now reconnected to /dev/null 6 9 7 10 * version 0.1.13 -
trunk/configure
r508 r510 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r50 7.3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r509. 4 4 # 5 5 # Report bugs to <rahra@cypherpunk.at>. … … 597 597 PACKAGE_NAME='onioncat' 598 598 PACKAGE_TARNAME='onioncat' 599 PACKAGE_VERSION='0.2.0.r50 7'600 PACKAGE_STRING='onioncat 0.2.0.r50 7'599 PACKAGE_VERSION='0.2.0.r509' 600 PACKAGE_STRING='onioncat 0.2.0.r509' 601 601 PACKAGE_BUGREPORT='rahra@cypherpunk.at' 602 602 … … 1260 1260 # This message is too long to be a string in the A/UX 3.1 sh. 1261 1261 cat <<_ACEOF 1262 \`configure' configures onioncat 0.2.0.r50 7to adapt to many kinds of systems.1262 \`configure' configures onioncat 0.2.0.r509 to adapt to many kinds of systems. 1263 1263 1264 1264 Usage: $0 [OPTION]... [VAR=VALUE]... … … 1330 1330 if test -n "$ac_init_help"; then 1331 1331 case $ac_init_help in 1332 short | recursive ) echo "Configuration of onioncat 0.2.0.r50 7:";;1332 short | recursive ) echo "Configuration of onioncat 0.2.0.r509:";; 1333 1333 esac 1334 1334 cat <<\_ACEOF … … 1422 1422 if $ac_init_version; then 1423 1423 cat <<\_ACEOF 1424 onioncat configure 0.2.0.r50 71424 onioncat configure 0.2.0.r509 1425 1425 generated by GNU Autoconf 2.62 1426 1426 … … 1436 1436 running configure, to aid debugging if configure makes a mistake. 1437 1437 1438 It was created by onioncat $as_me 0.2.0.r50 7, which was1438 It was created by onioncat $as_me 0.2.0.r509, which was 1439 1439 generated by GNU Autoconf 2.62. Invocation command line was 1440 1440 … … 2085 2085 # Define the identity of the package. 2086 2086 PACKAGE='onioncat' 2087 VERSION='0.2.0.r50 7'2087 VERSION='0.2.0.r509' 2088 2088 2089 2089 … … 2236 2236 2237 2237 cat >>confdefs.h <<\_ACEOF 2238 #define SVN_REVISION "50 7"2238 #define SVN_REVISION "509" 2239 2239 _ACEOF 2240 2240 … … 5209 5209 # values after options handling. 5210 5210 ac_log=" 5211 This file was extended by onioncat $as_me 0.2.0.r50 7, which was5211 This file was extended by onioncat $as_me 0.2.0.r509, which was 5212 5212 generated by GNU Autoconf 2.62. Invocation command line was 5213 5213 … … 5262 5262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5263 5263 ac_cs_version="\\ 5264 onioncat config.status 0.2.0.r50 75264 onioncat config.status 0.2.0.r509 5265 5265 configured by $0, generated by GNU Autoconf 2.62, 5266 5266 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" -
trunk/src/ocat.c
r509 r510 468 468 469 469 // reconnect stdio if logfile ok and daemonized 470 if (CNF( logf) && CNF(daemon))470 if (CNF(daemon)) 471 471 { 472 472 if ((nullfd = open("/dev/null", O_RDWR)) != -1) -
trunk/src/ocatctrl.c
r507 r510 35 35 void *ctrl_handler(void *p) 36 36 { 37 int fd, c , i;37 int fd, c; 38 38 FILE *ff, *fo; 39 39 char buf[FRAME_SIZE], addrstr[INET6_ADDRSTRLEN], onionstr[ONION_NAME_SIZE], timestr[32], *s, *tokbuf; … … 49 49 log_msg(LOG_EMERG, "couldn't create pipe: \"%s\"", strerror(errno)), exit(1); 50 50 51 fd = ( int) p;51 fd = (long) p; 52 52 if (CNF(config_read)) 53 53 { … … 148 148 inet_ntop(AF_INET6, &peer->addr, addrstr, INET6_ADDRSTRLEN), 149 149 peer->dir == PEER_INCOMING ? "IN" : "OUT", peer->dir, 150 time(NULL) - peer->time, peer->in, peer->out,peer->sdelay, timestr,150 (long) (time(NULL) - peer->time), peer->in, peer->out, (long) peer->sdelay, timestr, 151 151 peer->perm ? "PERMANENT" : "TEMPORARY", peer->perm 152 152 ); … … 244 244 else if (!strcmp(buf, "queue")) 245 245 { 246 print_socks_queue((FILE*) pfd[1]);246 print_socks_queue((FILE*) (long) pfd[1]); 247 247 for (;;) 248 248 { … … 308 308 int run_ctrl_handler(int fd) 309 309 { 310 return (int) run_ocat_thread("ctrl_handler", ctrl_handler, (void*) fd);310 return (int) run_ocat_thread("ctrl_handler", ctrl_handler, (void*) (long) fd); 311 311 } 312 312 -
trunk/src/ocateth.c
r486 r510 501 501 502 502 pthread_mutex_lock(ðer_ntoa_mutex_); 503 strlcpy(buf, ether_ntoa( addr), 18);503 strlcpy(buf, ether_ntoa((struct ether_addr*) addr), 18); 504 504 pthread_mutex_unlock(ðer_ntoa_mutex_); 505 505 return buf;
Note: See TracChangeset
for help on using the changeset viewer.
