Missed two %m yesterday
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 8 Sep 2010 07:20:59 +0000 (07:20 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 8 Sep 2010 07:20:59 +0000 (07:20 +0000)
Replaced with %s, strerror(errno)

src/vpn/gnunet-helper-vpn.c
src/vpn/gnunet-vpn-tun.c

index 3f9bcb3d4173370f19c6e22462f0ee050de89ba9..2d8b5baf3a8e15735ee0671828b6c04924c9fdb1 100644 (file)
@@ -175,7 +175,7 @@ int main(int argc, char** argv) {
 
        uid_t uid = getuid ();
        if (setresuid (uid, uid, uid) != 0 )
-               fprintf (stderr, "Failed to setresuid: %m\n");
+               fprintf (stderr, "Failed to setresuid: %s\n", strerror(errno));
 
        setnonblocking(0);
        setnonblocking(1);
index 4b37fef76602065216e9d25a8580632c84a80964..07def09c787c6356a75fb20768145866fca50e10 100644 (file)
@@ -30,7 +30,7 @@ int init_tun(char *dev) {{{
 
        if ((err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
                close(fd);
-               fprintf(stderr, "ioctl'ing /dev/net/tun: %m\n");
+               fprintf(stderr, "ioctl'ing /dev/net/tun: %s\n", strerror(errno));
                return err;
        }