From 7297697c324a6113371fd60b3668320e5a4817a7 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 9 Mar 2006 19:08:49 +0000 Subject: Small cleanup to the common functions --- common/list.c | 4 +++- common/list.h | 9 +++++---- common/textfile.h | 5 +++++ 3 files changed, 13 insertions(+), 5 deletions(-) (limited to 'common') diff --git a/common/list.c b/common/list.c index cb160501..1aa9d0be 100644 --- a/common/list.c +++ b/common/list.c @@ -3,6 +3,7 @@ * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2004-2006 Marcel Holtmann + * Copyright (C) 2005-2006 Johan Hedberg * * * This program is free software; you can redistribute it and/or modify @@ -26,7 +27,8 @@ #endif #include -#include +#include +#include #include "list.h" diff --git a/common/list.h b/common/list.h index 9185796e..b16bf946 100644 --- a/common/list.h +++ b/common/list.h @@ -3,6 +3,7 @@ * BlueZ - Bluetooth protocol stack for Linux * * Copyright (C) 2004-2006 Marcel Holtmann + * Copyright (C) 2005-2006 Johan Hedberg * * * This program is free software; you can redistribute it and/or modify @@ -20,8 +21,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ -#ifndef _LIST_H_ -#define _LIST_H_ + +#ifndef __LIST_H +#define __LIST_H struct slist { void *data; @@ -34,5 +36,4 @@ struct slist *slist_remove(struct slist *list, void *data); void slist_free(struct slist *list); - -#endif /* _LIST_H_ */ +#endif /* __LIST_H */ diff --git a/common/textfile.h b/common/textfile.h index 2e6d57b2..b9c01ad3 100644 --- a/common/textfile.h +++ b/common/textfile.h @@ -21,6 +21,9 @@ * */ +#ifndef __TEXTFILE_H +#define __TEXTFILE_H + int create_dirs(const char *filename, const mode_t mode); int create_file(const char *filename, const mode_t mode); @@ -30,3 +33,5 @@ char *textfile_get(const char *pathname, const char *key); int textfile_foreach(const char *pathname, void (*func)(char *key, char *value, void *data), void *data); + +#endif /* __TEXTFILE_H */ -- cgit