Commit-ID: 5a29bdc3c864801adc30cacbb79858942bea8d8d Gitweb: http://git.kernel.org/tip/5a29bdc3c864801adc30cacbb79858942bea8d8d Author: Asias He <asias.hejun@xxxxxxxxx> AuthorDate: Sat, 7 Apr 2012 20:11:13 +0800 Committer: Pekka Enberg <penberg@xxxxxxxxxx> CommitDate: Mon, 9 Apr 2012 11:34:48 +0300 kvm tools: Use enum for NET_MODE_{USER, TAP} Signed-off-by: Asias He <asias.hejun@xxxxxxxxx> Signed-off-by: Pekka Enberg <penberg@xxxxxxxxxx> --- tools/kvm/include/kvm/virtio-net.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/kvm/include/kvm/virtio-net.h b/tools/kvm/include/kvm/virtio-net.h index ebcd77f..737676e 100644 --- a/tools/kvm/include/kvm/virtio-net.h +++ b/tools/kvm/include/kvm/virtio-net.h @@ -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 */ -- To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html