mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
cleanup: Change datatype of auth->expires to boolean
This commit is contained in:
parent
1bbc1e7524
commit
7a984d5713
@ -7091,7 +7091,7 @@ virDomainGraphicsAuthDefParseXML(xmlNodePtr node,
|
||||
tm.tm_mon--; /* Humans start months at 1, computers at 0 */
|
||||
|
||||
def->validTo = timegm(&tm);
|
||||
def->expires = 1;
|
||||
def->expires = true;
|
||||
}
|
||||
|
||||
if (connected) {
|
||||
|
@ -1227,7 +1227,7 @@ typedef struct _virDomainGraphicsAuthDef virDomainGraphicsAuthDef;
|
||||
typedef virDomainGraphicsAuthDef *virDomainGraphicsAuthDefPtr;
|
||||
struct _virDomainGraphicsAuthDef {
|
||||
char *passwd;
|
||||
unsigned int expires: 1; /* Whether there is an expiry time set */
|
||||
bool expires; /* Whether there is an expiry time set */
|
||||
time_t validTo; /* seconds since epoch */
|
||||
int connected; /* action if connected */
|
||||
};
|
||||
|
@ -629,7 +629,7 @@ parallelsAddVNCInfo(virDomainDefPtr def, virJSONValuePtr jobj_root)
|
||||
gr->data.vnc.keymap = NULL;
|
||||
gr->data.vnc.socket = NULL;
|
||||
gr->data.vnc.auth.passwd = NULL;
|
||||
gr->data.vnc.auth.expires = 0;
|
||||
gr->data.vnc.auth.expires = false;
|
||||
gr->data.vnc.auth.connected = 0;
|
||||
|
||||
if (!(tmp = virJSONValueObjectGetString(jobj, "address"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user