summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-07-27 15:48:04 +0100
committerFrediano Ziglio <fziglio@redhat.com>2016-07-27 15:48:04 +0100
commit965eb5a615fe0f7f2a2526fca8cd2ba230a6626d (patch)
tree3f005c7f633154e8b6ad6a3ba922a73c3adeeb1f
parenta7094cffbcbd14fdba7d0ab6e0c7057a8857a674 (diff)
use same indentation for functions
-rw-r--r--tun.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tun.c b/tun.c
index 7333350..80c1441 100644
--- a/tun.c
+++ b/tun.c
@@ -27,7 +27,8 @@ static int tun_fd = -1;
* space to hold the interface name if '\0' is passed
* @param flags interface flags (eg, IFF_TUN etc.)
*/
-static int tun_alloc(char *dev, int flags)
+static int
+tun_alloc(char *dev, int flags)
{
struct ifreq ifr;
int fd, err;
@@ -52,7 +53,8 @@ static int tun_alloc(char *dev, int flags)
return fd;
}
-void tun_setup(void)
+void
+tun_setup(void)
{
char tun_name[IFNAMSIZ];
int fd;
@@ -191,7 +193,8 @@ release_packet(packet_t *pkt)
free(pkt);
}
-static void* writer_proc(void *ptr)
+static void*
+writer_proc(void *ptr)
{
packet_t *pkt;