]> git.proxmox.com Git - qemu.git/commitdiff
net: tap: use abort() instead of assert(0)
authorJason Wang <jasowang@redhat.com>
Wed, 30 Jan 2013 11:12:21 +0000 (19:12 +0800)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 1 Feb 2013 16:50:59 +0000 (10:50 -0600)
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net/tap-linux.c
net/tap-win32.c

index 059f5f34ab2ce026957b4c0c3507f306cadc5709..0a6acc7d5af0cc7b17e391016fa6b80297a76b38 100644 (file)
@@ -164,7 +164,7 @@ int tap_probe_vnet_hdr_len(int fd, int len)
     if (ioctl(fd, TUNSETVNETHDRSZ, &orig) == -1) {
         fprintf(stderr, "TUNGETVNETHDRSZ ioctl() failed: %s. Exiting.\n",
                 strerror(errno));
-        assert(0);
+        abort();
         return -errno;
     }
     return 1;
@@ -175,7 +175,7 @@ void tap_fd_set_vnet_hdr_len(int fd, int len)
     if (ioctl(fd, TUNSETVNETHDRSZ, &len) == -1) {
         fprintf(stderr, "TUNSETVNETHDRSZ ioctl() failed: %s. Exiting.\n",
                 strerror(errno));
-        assert(0);
+        abort();
     }
 }
 
index 3052bbac149af35d84b85962a799172f2ec8d7e1..601437ee2db2604d8a28eb958b810b19e697307d 100644 (file)
@@ -762,5 +762,5 @@ int tap_has_vnet_hdr_len(NetClientState *nc, int len)
 
 void tap_set_vnet_hdr_len(NetClientState *nc, int len)
 {
-    assert(0);
+    abort();
 }