| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Move definition of ssize_t to torint.h
svn:r8670
|
|
|
|
|
|
|
| |
Fix some test and warn failures in last commit
svn:r8665
|
|
|
|
|
|
|
| |
The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx.
svn:r8664
|
|
|
|
| |
svn:r8649
|
|
|
|
|
|
|
| |
More doxygen comments
svn:r8637
|
|
|
|
| |
svn:r8630
|
|
|
|
|
|
|
|
|
|
| |
change any behavior currently, but it will avoiding calling
noop code that might change for the worse some time.
nick, please confirm.
svn:r8623
|
|
|
|
| |
svn:r8622
|
|
|
|
|
|
|
| |
Use ANSI-style definition syntax in strlcat.c and strlcpy.c so that gcc stops barfing with -Wold-style-definition
svn:r8591
|
|
|
|
|
|
|
| |
Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces.
svn:r8580
|
|
|
|
|
|
|
| |
Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX.
svn:r8578
|
|
|
|
|
|
|
| |
Fix an XXXX: make path_is_relative work on windows even though we never use it there.
svn:r8577
|
|
|
|
|
|
|
| |
Resolve an XXXX: make sure that we are actually on 2s-complement hardware.
svn:r8576
|
|
|
|
|
|
|
| |
Add function to return a random uint64_t.
svn:r8570
|
|
|
|
|
|
|
| |
Now, all log messages should be distinct.
svn:r8545
|
|
|
|
|
|
|
| |
Differentiate more duplicated log entries
svn:r8542
|
|
|
|
|
|
|
| |
Make distinct all non-bug messages at notice or higher that appear 3 or more times.
svn:r8541
|
|
|
|
|
|
|
| |
Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct.
svn:r8536
|
|
|
|
|
|
|
| |
Omit function names from NOTICE, WARN and ERR messages unless they are in LD_BUG.
svn:r8534
|
|
|
|
|
|
|
| |
Improvement to last entry guards patch: track when we last attempted to connect to a node in our state file along with how long it has been unreachable. Also clarify behavior of parse_iso_time() when it gets extra characters.
svn:r8520
|
|
|
|
|
|
|
| |
Fix some warnings on mingw; hopefully this should let us build on mingw without warnings.
svn:r8509
|
|
|
|
| |
svn:r8499
|
|
|
|
| |
svn:r8498
|
|
|
|
|
|
|
| |
Trivial whitespace cleanups.
svn:r8443
|
|
|
|
| |
svn:r8434
|
|
|
|
|
|
| |
now, we allow multiple servers with the same name in the routerlist even if that name is reserved, but we check whether names are reserved when we try to look up routers by nickname. This is a minor security fix. This makes router_add_to_routerlist O(1). This is a backport candidate.
svn:r8433
|
|
|
|
|
|
| |
prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer.
svn:r8431
|
|
|
|
|
|
| |
crypto_pk_cmp_keys(); speed up find_whitespace a lot (8x for me) by using a switch statement. This should speed parsing a lot of routers at once by a lot.
svn:r8430
|
|
|
|
| |
svn:r8427
|
|
|
|
|
|
|
| |
Implement a smartlist_uniq() that will with luck not end the world.
svn:r8396
|
|
|
|
|
|
|
|
|
|
|
| |
Do not graciously increase the size to be mmaped if the current size already is
at a page_size boundary. This is important since if a file has a size of zero
and we mmap() it with length > 0, then accessing the mmaped memory area causes
a bus error. However, if we pass a length of 0 to mmap() it will return with -1
and things work from there.
svn:r8387
|
|
|
|
| |
svn:r8358
|
|
|
|
| |
svn:r8357
|
|
|
|
|
|
|
| |
spawn_func fixes: have cpuworker_main and dnsworker_main confirm to the right interfaces [casting func to void* is icky]. Also, make pthread_create() build without warnings.
svn:r8327
|
|
|
|
|
|
|
| |
Fix spaces; restore support for mapping files over 4GB on win32 (?)
svn:r8326
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- made configure link to required system dll's if building for win32
- added diffs for libevent 1.1b
- forced user to turn off eventdns if win32 is set
- cleaned up tor_mmap_file()_win32 (not sure if it's stable)
- cleaned up some warnings and typos
svn:r8322
|
|
|
|
|
|
|
| |
Try to appease some warnings with newer gccs that believe that ignoring a return value is okay, but casting a return value and then ignoring it is a sign of madness.
svn:r8312
|
|
|
|
|
|
|
| |
Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.)
svn:r8310
|
|
|
|
|
|
|
| |
Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later.
svn:r8309
|
|
|
|
|
|
|
| |
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3.
svn:r8303
|
|
|
|
|
|
|
| |
Aw, crap. Non-gcc bug. We need regular windows builds.
svn:r8259
|
|
|
|
| |
svn:r8235
|
|
|
|
|
|
|
| |
Pass hints to getaddrinfo; fix bug 280 (?)
svn:r7069
|
|
|
|
| |
svn:r7052
|
|
|
|
|
|
|
| |
Amazing how much difference adding a ! to all your asserts can make.
svn:r7029
|
|
|
|
|
|
|
| |
Only use __builtin_offsetof with gcc 4 or later
svn:r7028
|
|
|
|
|
|
|
| |
fix wide lines
svn:r7025
|
|
|
|
|
|
|
| |
And another GCC change: predict that tor_frees() are usually real frees, and tor_asserts() usually wont happen. Other test should wait till -fprofile-arcs
svn:r7022
|
|
|
|
|
|
|
| |
Use gcc offsetof where available.
svn:r7021
|
|
|
|
|
|
|
| |
Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation.
svn:r7020
|