toxcore/testing
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
..
av_test.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
DHT_test.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
dns3_test.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
irc_syncbot.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
Makefile.inc Ported some of the code in testing/ to the new api. 2015-02-24 20:29:01 -05:00
Messenger_test.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
misc_tools.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
nTox.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
nTox.h Improve static and const correctness. 2016-09-06 11:54:37 +01:00
tox_shell.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
tox_sync.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00