summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src/command_line_arguments.c
AgeCommit message (Collapse)Author
2018-01-30Use nullptr as NULL pointer constant instead of NULL or 0.iphydf
This changes only code, no string literals or comments.
2017-06-04Split daemon's logging backends in separate modulesMaxim Biro
2017-01-19Update license headers and remove redundant file name comment.iphydf
"All rights reserved" was incorrect. The project was licensed under GPL3, which means a lot of rights are licensed to everybody in the world, i.e. not reserved to the "Tox Project".
2016-09-06Improve static and const correctness.iphydf
- 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-01-04Cleanups.irungentoo
2016-01-01Keep it in alphabetical orderMaxim Biro
2016-01-01Unify function comment styleMaxim Biro
Use doxygen java-style function comments already used in log.[c|h].
2016-01-01Fix license headers and file descriptionsMaxim Biro
2016-01-01Put command-line arguments related functions in a separate fileMaxim Biro