]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
kvm tools: Use enum for NET_MODE_{USER, TAP}
authorAsias He <asias.hejun@gmail.com>
Sat, 7 Apr 2012 12:11:13 +0000 (20:11 +0800)
committerPekka Enberg <penberg@kernel.org>
Mon, 9 Apr 2012 08:34:48 +0000 (11:34 +0300)
Signed-off-by: Asias He <asias.hejun@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/virtio-net.h

index ebcd77ffdfbff3095b3785f487d9d2f0212e32fd..737676ebcf68b35af2c6d4738a7bd83276636e1c 100644 (file)
@@ -18,7 +18,9 @@ struct virtio_net_params {
 
 void virtio_net__init(const struct virtio_net_params *params);
 
-#define NET_MODE_USER  0
-#define NET_MODE_TAP   1
+enum {
+       NET_MODE_USER,
+       NET_MODE_TAP
+};
 
 #endif /* KVM__VIRTIO_NET_H */