toxcore/other
iphydf ad26560516
Improve static and const correctness.
- Any non-externally-visible declarations should be `static`.
- Casting away the `const` qualifier from pointers-to-const is
  dangerous. All but one instance of this are now correct. The one
  instance where we can't keep `const` is one where toxav code actually
  writes to a chunk of memory marked as `const`. This code also assumes
  4 byte alignment of data packets. I don't know whether that is a valid
  assumption, but it's likely unportable, and *not* obviously correct.
- Replaced empty parameter lists with `(void)` to avoid passing
  parameters to it. Empty parameter lists are old style declarations for
  unknown number and type of arguments.
- Commented out (as `#if DHT_HARDENING` block) the hardening code that
  was never executed.
- Minor style fix: don't use `default` in enum-switches unless the number
  of enumerators in the default case is very large. In this case, it was
  2, so we want to list them both explicitly to be warned about missing
  one if we add one in the future.
- Removed the only two function declarations from nTox.h and put them
  into nTox.c. They are not used outside and nTox is not a library.
2016-09-06 11:54:37 +01:00
..
apidsl Make friend requests stateless 2016-09-06 02:22:04 -07:00
astyle Add cmake test for apidsl. 2016-08-24 09:41:40 +01:00
bootstrap_daemon Improve static and const correctness. 2016-09-06 11:54:37 +01:00
fun Check code formatting on Travis. 2016-08-12 01:00:00 +01:00
pkgconfig Split toxcore into layers. 2016-08-16 17:36:18 +01:00
travis Move logging to a callback. 2016-08-27 01:16:14 +01:00
bootstrap_node_packets.c Add braces to all if statements. 2016-08-31 20:04:16 +01:00
bootstrap_node_packets.h Put config-related functions in a separate file 2016-01-01 00:19:35 -05:00
DHT_bootstrap.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
DHTnodes Link changes. 2015-07-07 22:57:11 -04:00
Makefile.inc Put config-related functions in a separate file 2016-01-01 00:19:35 -05:00
osx_build_script_toxcore.sh Move OS X install script 2015-02-03 12:48:15 -05:00
tox.png Added logo in readme to repo. 2013-08-14 12:35:55 -04:00