Lines Matching defs:cnt
954 int cnt = 0;
964 cnt++;
966 if (cnt == 0)
969 if ((*vinfo = calloc(cnt, sizeof (lldp_vlan_info_t))) == NULL)
972 *count = cnt;
1058 int cnt = 0;
1070 cnt++;
1072 if (cnt == 0)
1075 if ((*vinfo = calloc(cnt, sizeof (lldp_vnic_info_t))) == NULL)
1078 *count = cnt;
1181 int cnt = 0;
1192 cnt++;
1194 if (cnt == 0)
1197 if ((*appln = calloc(cnt, sizeof (lldp_appln_t))) == NULL)
1200 *nappln = cnt;
1264 int i, cnt;
1283 cnt = (tlv->lt_len - (LLDP_ORGSPECHDR_SZ + 1)) / 3;
1284 if ((*appln = calloc(cnt, sizeof (lldp_appln_t))) == NULL)
1289 *nappln = cnt;
1291 for (i = 0; i < cnt; i++, app++) {
2126 int cnt, len;
2128 for (cnt = 0, len = 0; cnt < alen; cnt++) {
2129 if (cnt > 0)
2131 len += snprintf(buf + len, bufsize - len, "%d", arr[cnt]);
2142 int cnt;
2146 cnt = 0;
2151 if (cnt >= alen)
2153 arr[cnt++] = (uint8_t)strtol(str, NULL, 10);