sortbydeps: rename vptr -> i
vptr is a simple list iterator, which are typically named i. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
This commit is contained in:
parent
a8670304c9
commit
f9de3b22ad
1 changed files with 5 additions and 5 deletions
|
@ -215,7 +215,7 @@ alpm_list_t *_alpm_sortbydeps(alpm_handle_t *handle,
|
||||||
{
|
{
|
||||||
alpm_list_t *newtargs = NULL;
|
alpm_list_t *newtargs = NULL;
|
||||||
alpm_list_t *vertices = NULL;
|
alpm_list_t *vertices = NULL;
|
||||||
alpm_list_t *vptr;
|
alpm_list_t *i;
|
||||||
alpm_graph_t *vertex;
|
alpm_graph_t *vertex;
|
||||||
|
|
||||||
if(targets == NULL) {
|
if(targets == NULL) {
|
||||||
|
@ -226,9 +226,9 @@ alpm_list_t *_alpm_sortbydeps(alpm_handle_t *handle,
|
||||||
|
|
||||||
vertices = dep_graph_init(handle, targets, ignore);
|
vertices = dep_graph_init(handle, targets, ignore);
|
||||||
|
|
||||||
vptr = vertices;
|
i = vertices;
|
||||||
vertex = vertices->data;
|
vertex = vertices->data;
|
||||||
while(vptr) {
|
while(i) {
|
||||||
/* mark that we touched the vertex */
|
/* mark that we touched the vertex */
|
||||||
vertex->state = ALPM_GRAPH_STATE_PROCESSING;
|
vertex->state = ALPM_GRAPH_STATE_PROCESSING;
|
||||||
int switched_to_child = 0;
|
int switched_to_child = 0;
|
||||||
|
@ -252,8 +252,8 @@ alpm_list_t *_alpm_sortbydeps(alpm_handle_t *handle,
|
||||||
vertex = vertex->parent;
|
vertex = vertex->parent;
|
||||||
if(!vertex) {
|
if(!vertex) {
|
||||||
/* top level vertex reached, move to the next unprocessed vertex */
|
/* top level vertex reached, move to the next unprocessed vertex */
|
||||||
for( vptr = vptr->next; vptr; vptr = vptr->next) {
|
for(i = i->next; i; i = i->next) {
|
||||||
vertex = vptr->data;
|
vertex = i->data;
|
||||||
if(vertex->state == ALPM_GRAPH_STATE_UNPROCESSED) {
|
if(vertex->state == ALPM_GRAPH_STATE_UNPROCESSED) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue