toxcore/toxav
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
..
audio.c Do not use else after return. 2016-09-02 11:02:56 +01:00
audio.h Move logging to a callback. 2016-08-27 01:16:14 +01:00
bwcontroller.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
bwcontroller.h Merge branch 'master' of https://github.com/helium-software/toxcore 2015-11-19 14:43:09 -05:00
group.c Do not use else after return. 2016-09-02 11:02:56 +01:00
group.h Move logging to a callback. 2016-08-27 01:16:14 +01:00
Makefile.inc fix BWController misspelling 2015-11-11 10:33:03 +01:00
msi.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
msi.h Sort #includes in all source files. 2016-09-01 16:35:46 +01:00
rtp.c Improve static and const correctness. 2016-09-06 11:54:37 +01:00
rtp.h Improve C standard compliance. 2016-09-06 11:09:10 +01:00
toxav_old.c Sort #includes in all source files. 2016-09-01 16:35:46 +01:00
toxav.c Do not use else after return. 2016-09-02 11:02:56 +01:00
toxav.h Match parameter names in declarations with their definitions. 2016-09-01 14:54:17 +01:00
video.c Remove useless casts. 2016-09-01 18:49:49 +01:00
video.h Sort #includes in all source files. 2016-09-01 16:35:46 +01:00