Commit 34e50058 authored by gates's avatar gates
Browse files

Fix header inclusions, placing them in sources that need them.

Also explicitely require headers when needed.
parent 6e60d413
......@@ -7,14 +7,6 @@
#include "../util/macro.h"
#include "../util/logging.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
uint8_t *configfile_record(CONFIGFILE *kf, enum configfile_types type, uint16_t *entries, size_t *entry_len)
{
size_t pos = 0, len = 0;
......
......@@ -3,7 +3,7 @@
#define CONFIGFILE_H_
#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
typedef struct configfile CONFIGFILE;
struct configfile {
......
......@@ -3,7 +3,6 @@
#define FILE_H_
#include <stdint.h>
#include <unistd.h>
//#ifdef __LINUX__
#define file_open file_open_linux
......
......@@ -6,15 +6,7 @@
#include "../util/macro.h"
#include "../util/logging.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <stdio.h>
FILE_H *file_open_linux(const char* filename, const char *mode);
void file_close_linux(FILE_H *file);
......
......@@ -11,6 +11,7 @@
#include "../file/file.h"
#include <inttypes.h>
#include <string.h>
#include <openssl/evp.h>
int _validate_pk(uint8_t *pk, uint8_t *cvalue, uint8_t *uv, uint8_t *vd,
......
......@@ -7,8 +7,6 @@
#include "../file/configfile.h"
#include <stdint.h>
#define LIBAACS_VERSION "1.0"
typedef struct aacs AACS;
......
......@@ -11,8 +11,10 @@
#include <stdlib.h>
#include <mntent.h>
#include <errno.h>
#include <sys/fcntl.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <string.h>
#if HAVE_LINUX_CDROM_H
#include <linux/cdrom.h>
#endif
......
#include "logging.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
char out[512];
debug_mask_t debug_mask = 0;
......
......@@ -4,10 +4,7 @@
#include "attributes.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#define DEBUG(X,Y,...) debug(__FILE__,__LINE__,X,Y,##__VA_ARGS__)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment