Added missing function prototypes
Found by clang -Wmissing-prototypes
This commit is contained in:
parent
78397eda9b
commit
9b3ff33dba
8 changed files with 11 additions and 5 deletions
|
@ -156,6 +156,8 @@ dnl AX_CHECK_COMPILE_FLAG([-fno-strict-overflow], [CPPFLAGS="$CPPFLAGS -fno-st
|
|||
AX_CHECK_COMPILE_FLAG([-Werror=uninitialized], [CFLAGS="$CFLAGS -Werror=uninitialized"])
|
||||
AX_CHECK_COMPILE_FLAG([-Werror=missing-field-initializers], [CFLAGS="$CFLAGS -Werror=missing-field-initializers"])
|
||||
AX_CHECK_COMPILE_FLAG([-Werror=missing-variable-declarations], [CFLAGS="$CFLAGS -Werror=missing-variable-declarations"])
|
||||
AX_CHECK_COMPILE_FLAG([-Werror=missing-prototypes], [CFLAGS="$CFLAGS -Werror=missing-prototypes"])
|
||||
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-conversion], [CFLAGS="$CFLAGS -Wno-conversion"])
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-date-time], [CFLAGS="$CFLAGS -Wno-date-time"])
|
||||
AX_CHECK_COMPILE_FLAG([-Wno-shadow], [CFLAGS="$CFLAGS -Wno-shadow"])
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#ifndef __TINC_CONTROL_H__
|
||||
#define __TINC_CONTROL_H__
|
||||
|
||||
extern bool init_control();
|
||||
extern void exit_control();
|
||||
extern bool init_control(void);
|
||||
extern void exit_control(void);
|
||||
extern char controlcookie[];
|
||||
|
||||
#endif
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
#ifndef __TINC_CRYPTO_H__
|
||||
#define __TINC_CRYPTO_H__
|
||||
|
||||
extern void crypto_init();
|
||||
extern void crypto_exit();
|
||||
extern void crypto_init(void);
|
||||
extern void crypto_exit(void);
|
||||
extern void randomize(void *, size_t);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "info.h"
|
||||
#include "utils.h"
|
||||
#include "xalloc.h"
|
||||
#include "logger.h"
|
||||
|
||||
void logger(int level, int priority, const char *format, ...) {
|
||||
va_list ap;
|
||||
|
|
|
@ -79,7 +79,7 @@ static void scan_for_hostname(const char *filename, char **hostname, char **port
|
|||
fclose(f);
|
||||
}
|
||||
|
||||
char *get_my_hostname() {
|
||||
char *get_my_hostname(void) {
|
||||
char *hostname = NULL;
|
||||
char *port = NULL;
|
||||
char *hostport = NULL;
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#ifndef __TINC_INVITATION_H__
|
||||
#define __TINC_INVITATION_H__
|
||||
|
||||
char *get_my_hostname(void);
|
||||
bool recvdata(int fd, char *data, size_t len);
|
||||
int cmd_invite(int argc, char *argv[]);
|
||||
int cmd_join(int argc, char *argv[]);
|
||||
|
|
|
@ -25,6 +25,7 @@ typedef struct rsa rsa_t;
|
|||
#endif
|
||||
|
||||
extern void rsa_free(rsa_t *rsa);
|
||||
extern bool rsa_active(rsa_t *rsa);
|
||||
extern rsa_t *rsa_set_hex_public_key(char *n, char *e) __attribute__ ((__malloc__));
|
||||
extern rsa_t *rsa_set_hex_private_key(char *n, char *e, char *d) __attribute__ ((__malloc__));
|
||||
extern rsa_t *rsa_read_pem_public_key(FILE *fp) __attribute__ ((__malloc__));
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#include "crypto.h"
|
||||
#include "ecdsagen.h"
|
||||
#include "logger.h"
|
||||
#include "utils.h"
|
||||
|
||||
static char *program_name;
|
||||
|
|
Loading…
Reference in a new issue