diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-06-23 17:16:28 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-06-24 19:17:32 +0000 |
commit | 8e00294b3cb9808ce55160240454359638178275 (patch) | |
tree | 095a7708b3fe3566951ebe7b068ee66a8beed3c1 /toxcore/network.h | |
parent | 5a8790eab0ed9421445adce40526462b9e6742c3 (diff) |
Add Logger to various net_crypto functions.
In preparation for adding log statements.
Also, fix an uninitialised variable warning in cppcheck.
Diffstat (limited to 'toxcore/network.h')
-rw-r--r-- | toxcore/network.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/network.h b/toxcore/network.h index 8071375b..fbd12bb7 100644 --- a/toxcore/network.h +++ b/toxcore/network.h | |||
@@ -458,9 +458,9 @@ void net_kill_strerror(const char *strerror); | |||
458 | * | 458 | * |
459 | * If error is non NULL it is set to 0 if no issues, 1 if socket related error, 2 if other. | 459 | * If error is non NULL it is set to 0 if no issues, 1 if socket related error, 2 if other. |
460 | */ | 460 | */ |
461 | Networking_Core *new_networking(Logger *log, IP ip, uint16_t port); | 461 | Networking_Core *new_networking(const Logger *log, IP ip, uint16_t port); |
462 | Networking_Core *new_networking_ex(Logger *log, IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); | 462 | Networking_Core *new_networking_ex(const Logger *log, IP ip, uint16_t port_from, uint16_t port_to, unsigned int *error); |
463 | Networking_Core *new_networking_no_udp(Logger *log); | 463 | Networking_Core *new_networking_no_udp(const Logger *log); |
464 | 464 | ||
465 | /* Function to cleanup networking stuff (doesn't do much right now). */ | 465 | /* Function to cleanup networking stuff (doesn't do much right now). */ |
466 | void kill_networking(Networking_Core *net); | 466 | void kill_networking(Networking_Core *net); |