aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2010-09-08 07:20:59 +0000
committerPhilipp Tölke <toelke@in.tum.de>2010-09-08 07:20:59 +0000
commit904122fdd5f2799cc40ab55ae984d29c2ec8c259 (patch)
treea60deb5a1531ad5815c81160c9843fc12200cbdc /src
parentfa4bed9e35db040270f4f9e76e597ca2451e4ce7 (diff)
downloadgnunet-904122fdd5f2799cc40ab55ae984d29c2ec8c259.tar.gz
gnunet-904122fdd5f2799cc40ab55ae984d29c2ec8c259.zip
Missed two %m yesterday
Replaced with %s, strerror(errno)
Diffstat (limited to 'src')
-rw-r--r--src/vpn/gnunet-helper-vpn.c2
-rw-r--r--src/vpn/gnunet-vpn-tun.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c
index 3f9bcb3d4..2d8b5baf3 100644
--- a/src/vpn/gnunet-helper-vpn.c
+++ b/src/vpn/gnunet-helper-vpn.c
@@ -175,7 +175,7 @@ int main(int argc, char** argv) {
175 175
176 uid_t uid = getuid (); 176 uid_t uid = getuid ();
177 if (setresuid (uid, uid, uid) != 0 ) 177 if (setresuid (uid, uid, uid) != 0 )
178 fprintf (stderr, "Failed to setresuid: %m\n"); 178 fprintf (stderr, "Failed to setresuid: %s\n", strerror(errno));
179 179
180 setnonblocking(0); 180 setnonblocking(0);
181 setnonblocking(1); 181 setnonblocking(1);
diff --git a/src/vpn/gnunet-vpn-tun.c b/src/vpn/gnunet-vpn-tun.c
index 4b37fef76..07def09c7 100644
--- a/src/vpn/gnunet-vpn-tun.c
+++ b/src/vpn/gnunet-vpn-tun.c
@@ -30,7 +30,7 @@ int init_tun(char *dev) {{{
30 30
31 if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){ 31 if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
32 close(fd); 32 close(fd);
33 fprintf(stderr, "ioctl'ing /dev/net/tun: %m\n"); 33 fprintf(stderr, "ioctl'ing /dev/net/tun: %s\n", strerror(errno));
34 return err; 34 return err;
35 } 35 }
36 36