Browse Source

* fix include guards

master
Alex 'AdUser' Z 8 years ago
parent
commit
ac4415ee1e
  1. 6
      src/backend.h
  2. 6
      src/config.h
  3. 6
      src/filelist.h
  4. 6
      src/filter.h

6
src/backend.h

@ -4,8 +4,8 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef BACKEND_H_
#define BACKEND_H_
#ifndef F2B_BACKEND_H_
#define F2B_BACKEND_H_
#include "config.h"
#include "log.h"
@ -39,4 +39,4 @@ bool f2b_backend_ban (f2b_backend_t *b, const char *ip);
bool f2b_backend_check (f2b_backend_t *b, const char *ip);
bool f2b_backend_unban (f2b_backend_t *b, const char *ip);
#endif /* BACKEND_H_ */
#endif /* F2B_BACKEND_H_ */

6
src/config.h

@ -4,8 +4,8 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#ifndef F2B_CONFIG_H_
#define F2B_CONFIG_H_
#define CONFIG_LINE_MAX 256
@ -53,4 +53,4 @@ f2b_config_section_t * f2b_config_section_append(f2b_config_t *c, f2b_config_sec
bool f2b_config_load(f2b_config_t *c, const char *path, bool recursion);
void f2b_config_free(f2b_config_t *c);
#endif /* CONFIG_H_ */
#endif /* F2B_CONFIG_H_ */

6
src/filelist.h

@ -4,8 +4,8 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef FILELIST_H_
#define FILELIST_H_
#ifndef F2B_FILELIST_H_
#define F2B_FILELIST_H_
f2b_logfile_t *
f2b_filelist_from_glob(const char *pattern);
@ -16,4 +16,4 @@ f2b_filelist_append(f2b_logfile_t *list, f2b_logfile_t *file);
void
f2b_filelist_destroy(f2b_logfile_t *list);
#endif /* FILELIST_H_ */
#endif /* F2B_FILELIST_H_ */

6
src/filter.h

@ -4,8 +4,8 @@
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef FILTER_H_
#define FILTER_H_
#ifndef F2B_FILTER_H_
#define F2B_FILTER_H_
#include "config.h"
#include "log.h"
@ -28,4 +28,4 @@ void f2b_filter_destroy(f2b_filter_t *b);
bool f2b_filter_match(f2b_filter_t *b, const char *line, char *buf, size_t buf_size);
const char * f2b_filter_error(f2b_filter_t *b);
#endif /* FILTER_H_ */
#endif /* F2B_FILTER_H_ */

Loading…
Cancel
Save