summaryrefslogtreecommitdiff
path: root/toxcore/util.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-30 15:15:50 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-30 19:06:44 +0100
commit1977d56caaff40ea9bbf6754b69bec9539a5a969 (patch)
treedb9c6d6c59dc0f91900dafe85dea1ab90f0ca8d9 /toxcore/util.h
parent949ef785a4e7aa7868c9605b6bbed15c3f4beab9 (diff)
Remove return after no-return situation (and other cleanups).
Cleanups: - Fix header guards to not use reserved names. - Avoid name shadowing. - Removed an unused variable found by avoiding name shadowing.
Diffstat (limited to 'toxcore/util.h')
-rw-r--r--toxcore/util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/util.h b/toxcore/util.h
index 20469b75..c435813b 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -22,8 +22,8 @@
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24 24
25#ifndef __UTIL_H__ 25#ifndef UTIL_H
26#define __UTIL_H__ 26#define UTIL_H
27 27
28#include <pthread.h> 28#include <pthread.h>
29#include <stdbool.h> 29#include <stdbool.h>
@@ -58,4 +58,4 @@ int load_state(load_state_callback_func load_state_callback, void *outer,
58/* Returns -1 if failed or 0 if success */ 58/* Returns -1 if failed or 0 if success */
59int create_recursive_mutex(pthread_mutex_t *mutex); 59int create_recursive_mutex(pthread_mutex_t *mutex);
60 60
61#endif /* __UTIL_H__ */ 61#endif /* UTIL_H */