diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-07-31 09:44:55 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-07-31 09:44:55 +0200 |
commit | 18a5634766fa520d1160babc26bf8159877e127c (patch) | |
tree | fc1244b17c55fb2292b3e20c2e45339427be730b /ioops.c | |
parent | 514a4ae9fa544db72e3ea2fc6dcd3a9530b24127 (diff) |
ioops: Constify `name' parameter to tun_open_or_die()
The parameter `name' to tun_open_or_die() is never modified
inside the function, thus mark it as const.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'ioops.c')
-rw-r--r-- | ioops.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ void pipe_or_die(int pipefd[2], int flags) panic("Cannot create pipe2 event fd! %s.\n", strerror(errno)); } -int tun_open_or_die(char *name, int type) +int tun_open_or_die(const char *name, int type) { int fd, ret; short flags; |