summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/list.c4
-rw-r--r--common/list.h9
-rw-r--r--common/textfile.h5
3 files changed, 13 insertions, 5 deletions
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 <marcel@holtmann.org>
+ * Copyright (C) 2005-2006 Johan Hedberg <johan.hedberg@nokia.com>
*
*
* This program is free software; you can redistribute it and/or modify
@@ -26,7 +27,8 @@
#endif
#include <stdio.h>
-#include <stdlib.h>
+#include <errno.h>
+#include <malloc.h>
#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 <marcel@holtmann.org>
+ * Copyright (C) 2005-2006 Johan Hedberg <johan.hedberg@nokia.com>
*
*
* 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 */