diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-18 01:31:55 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-24 21:53:50 +0100 |
commit | 15cb4261665bab4ef02a5b1b9db48b9477c9b87a (patch) | |
tree | d0c40a45afa19fff26ce1eb5bb703e18a9acdd4a /toxcore/logger.c | |
parent | 0d347c2b2e69aa09b079f6daaa00007fef4fe52f (diff) |
Make toxcore code C++ compatible.
It is still C code, so still compatible with C compilers as well. This
change lets us see more clearly where implicit conversions occur by
making them explicit.
Diffstat (limited to 'toxcore/logger.c')
-rw-r--r-- | toxcore/logger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/logger.c b/toxcore/logger.c index c6f4056b..bbb31aa2 100644 --- a/toxcore/logger.c +++ b/toxcore/logger.c | |||
@@ -37,7 +37,7 @@ struct Logger { | |||
37 | */ | 37 | */ |
38 | Logger *logger_new(void) | 38 | Logger *logger_new(void) |
39 | { | 39 | { |
40 | return calloc(1, sizeof(Logger)); | 40 | return (Logger *)calloc(1, sizeof(Logger)); |
41 | } | 41 | } |
42 | 42 | ||
43 | void logger_kill(Logger *log) | 43 | void logger_kill(Logger *log) |