mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Mon Jun 25 14:03:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
* src/remote_internal.c: Partial revert - defining enum transport as a typedef broke the build.
This commit is contained in:
parent
b48d5f7a47
commit
b19a6c7d28
@ -1,3 +1,8 @@
|
||||
Mon Jun 25 14:03:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* src/remote_internal.c: Partial revert - defining enum transport
|
||||
as a typedef broke the build.
|
||||
|
||||
Mon Jun 25 09:40:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>
|
||||
|
||||
* src/remote_internal.c: Made cosmetic changes to the code and
|
||||
|
@ -104,13 +104,13 @@ static int initialise_gnutls (virConnectPtr conn);
|
||||
static gnutls_session_t negotiate_gnutls_on_connection (virConnectPtr conn, int sock, int no_verify, const char *hostname);
|
||||
|
||||
/* Supported transports. */
|
||||
typedef enum {
|
||||
enum transport {
|
||||
trans_tls,
|
||||
trans_unix,
|
||||
trans_ssh,
|
||||
trans_ext,
|
||||
trans_tcp,
|
||||
} transport;
|
||||
};
|
||||
|
||||
static int
|
||||
remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
|
||||
@ -130,7 +130,7 @@ remoteOpen (virConnectPtr conn, const char *uri_str, int flags)
|
||||
return VIR_DRV_OPEN_DECLINED; /* Decline - not a remote URL. */
|
||||
|
||||
/* What transport? */
|
||||
transport transport;
|
||||
enum transport transport;
|
||||
if (!transport_str || strcasecmp (transport_str, "tls") == 0)
|
||||
transport = trans_tls;
|
||||
else if (strcasecmp (transport_str, "unix") == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user