Changeset 510


Ignore:
Timestamp:
07/29/09 09:31:11 (3 years ago)
Author:
eagle
Message:
  • base development environment changed to OpenBSD 4.5
  • some type conversions fixed
  • fd 0,1,2 now reconnected to /dev/null
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r508 r510  
    44 - updated hosts.onioncat 
    55 - 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 
    69 
    710* version 0.1.13 
  • trunk/configure

    r508 r510  
    11#! /bin/sh 
    22# Guess values for system-dependent variables and create Makefiles. 
    3 # Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r507. 
     3# Generated by GNU Autoconf 2.62 for onioncat 0.2.0.r509. 
    44# 
    55# Report bugs to <rahra@cypherpunk.at>. 
     
    597597PACKAGE_NAME='onioncat' 
    598598PACKAGE_TARNAME='onioncat' 
    599 PACKAGE_VERSION='0.2.0.r507' 
    600 PACKAGE_STRING='onioncat 0.2.0.r507' 
     599PACKAGE_VERSION='0.2.0.r509' 
     600PACKAGE_STRING='onioncat 0.2.0.r509' 
    601601PACKAGE_BUGREPORT='rahra@cypherpunk.at' 
    602602 
     
    12601260  # This message is too long to be a string in the A/UX 3.1 sh. 
    12611261  cat <<_ACEOF 
    1262 \`configure' configures onioncat 0.2.0.r507 to adapt to many kinds of systems. 
     1262\`configure' configures onioncat 0.2.0.r509 to adapt to many kinds of systems. 
    12631263 
    12641264Usage: $0 [OPTION]... [VAR=VALUE]... 
     
    13301330if test -n "$ac_init_help"; then 
    13311331  case $ac_init_help in 
    1332      short | recursive ) echo "Configuration of onioncat 0.2.0.r507:";; 
     1332     short | recursive ) echo "Configuration of onioncat 0.2.0.r509:";; 
    13331333   esac 
    13341334  cat <<\_ACEOF 
     
    14221422if $ac_init_version; then 
    14231423  cat <<\_ACEOF 
    1424 onioncat configure 0.2.0.r507 
     1424onioncat configure 0.2.0.r509 
    14251425generated by GNU Autoconf 2.62 
    14261426 
     
    14361436running configure, to aid debugging if configure makes a mistake. 
    14371437 
    1438 It was created by onioncat $as_me 0.2.0.r507, which was 
     1438It was created by onioncat $as_me 0.2.0.r509, which was 
    14391439generated by GNU Autoconf 2.62.  Invocation command line was 
    14401440 
     
    20852085# Define the identity of the package. 
    20862086 PACKAGE='onioncat' 
    2087  VERSION='0.2.0.r507' 
     2087 VERSION='0.2.0.r509' 
    20882088 
    20892089 
     
    22362236 
    22372237cat >>confdefs.h <<\_ACEOF 
    2238 #define SVN_REVISION "507" 
     2238#define SVN_REVISION "509" 
    22392239_ACEOF 
    22402240 
     
    52095209# values after options handling. 
    52105210ac_log=" 
    5211 This file was extended by onioncat $as_me 0.2.0.r507, which was 
     5211This file was extended by onioncat $as_me 0.2.0.r509, which was 
    52125212generated by GNU Autoconf 2.62.  Invocation command line was 
    52135213 
     
    52625262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 
    52635263ac_cs_version="\\ 
    5264 onioncat config.status 0.2.0.r507 
     5264onioncat config.status 0.2.0.r509 
    52655265configured by $0, generated by GNU Autoconf 2.62, 
    52665266  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 
  • trunk/src/ocat.c

    r509 r510  
    468468 
    469469   // reconnect stdio if logfile ok and daemonized 
    470    if (CNF(logf) && CNF(daemon)) 
     470   if (CNF(daemon)) 
    471471   { 
    472472      if ((nullfd = open("/dev/null", O_RDWR)) != -1) 
  • trunk/src/ocatctrl.c

    r507 r510  
    3535void *ctrl_handler(void *p) 
    3636{ 
    37    int fd, c, i; 
     37   int fd, c; 
    3838   FILE *ff, *fo; 
    3939   char buf[FRAME_SIZE], addrstr[INET6_ADDRSTRLEN], onionstr[ONION_NAME_SIZE], timestr[32], *s, *tokbuf; 
     
    4949      log_msg(LOG_EMERG, "couldn't create pipe: \"%s\"", strerror(errno)), exit(1); 
    5050 
    51    fd = (int) p; 
     51   fd = (long) p; 
    5252   if (CNF(config_read)) 
    5353   { 
     
    148148                     inet_ntop(AF_INET6, &peer->addr, addrstr, INET6_ADDRSTRLEN), 
    149149                     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, 
    151151                     peer->perm ? "PERMANENT" : "TEMPORARY", peer->perm 
    152152                     ); 
     
    244244      else if (!strcmp(buf, "queue")) 
    245245      { 
    246          print_socks_queue((FILE*) pfd[1]); 
     246         print_socks_queue((FILE*) (long) pfd[1]); 
    247247         for (;;) 
    248248         { 
     
    308308int run_ctrl_handler(int fd) 
    309309{ 
    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); 
    311311} 
    312312 
  • trunk/src/ocateth.c

    r486 r510  
    501501 
    502502   pthread_mutex_lock(&ether_ntoa_mutex_); 
    503    strlcpy(buf, ether_ntoa(addr), 18); 
     503   strlcpy(buf, ether_ntoa((struct ether_addr*) addr), 18); 
    504504   pthread_mutex_unlock(&ether_ntoa_mutex_); 
    505505   return buf; 
Note: See TracChangeset for help on using the changeset viewer.