summaryrefslogtreecommitdiff
path: root/src/string_list.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-10-07 11:55:08 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-10-07 11:55:08 +0000
commit6c40ae29a879eb7d7a70cbea9e3ff16e643ccce7 (patch)
tree4c05ef3d015aa4747668cccc00238de88d1e25af /src/string_list.c
parentfixed build with -Wall (diff)
whitespace cleanups
updated copyright notice git-svn-id: https://svn.spreadspace.org/tcpproxy/trunk@68 e61f0598-a718-4e21-a8f0-0aadfa62ad6b
Diffstat (limited to 'src/string_list.c')
-rw-r--r--src/string_list.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/string_list.c b/src/string_list.c
index e197749..8715f65 100644
--- a/src/string_list.c
+++ b/src/string_list.c
@@ -1,14 +1,14 @@
/*
* tcpproxy
*
- * tcpproxy is a simple tcp connection proxy which combines the
- * features of rinetd and 6tunnel. tcpproxy supports IPv4 and
- * IPv6 and also supports connections from IPv6 to IPv4
+ * tcpproxy is a simple tcp connection proxy which combines the
+ * features of rinetd and 6tunnel. tcpproxy supports IPv4 and
+ * IPv6 and also supports connections from IPv6 to IPv4
* endpoints and vice versa.
- *
*
- * Copyright (C) 2010-2011 Christian Pointner <equinox@spreadspace.org>
- *
+ *
+ * Copyright (C) 2010-2013 Christian Pointner <equinox@spreadspace.org>
+ *
* This file is part of tcpproxy.
*
* tcpproxy is free software: you can redistribute it and/or modify
@@ -46,7 +46,7 @@ int string_list_add(string_list_t* list, const char* string)
{
if(!list)
return -1;
-
+
char* tmp = strdup(string);
if(slist_add(list, tmp) == NULL) {
free(tmp);
@@ -60,7 +60,7 @@ void string_list_print(string_list_t* list, const char* head, const char* tail)
{
if(!list)
return;
-
+
slist_element_t* tmp = list->first_;
while(tmp) {
printf("%s%s%s", head, (char*)(tmp->data_), tail);