util: Use 'idx' instead of 'index'

Impending syntax checker will disallow 'int index', so change it here.
This commit is contained in:
John Ferlan 2015-04-14 07:34:24 -04:00
parent f44429a0bc
commit 454e52c89d
1 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ typedef enum {
typedef struct _virNetDevMcastEntry virNetDevMcastEntry;
typedef virNetDevMcastEntry *virNetDevMcastEntryPtr;
struct _virNetDevMcastEntry {
int index;
int idx;
char name[VIR_MCAST_NAME_LEN];
int users;
bool global;
@ -2605,7 +2605,7 @@ static int virNetDevParseMcast(char *buf, virNetDevMcastEntryPtr mcast)
return -1;
}
mcast->index = num;
mcast->idx = num;
break;
case VIR_MCAST_TYPE_NAME_TOKEN:
if (virStrncpy(mcast->name, token, strlen(token),