Lines Matching defs:cur
2050 struct cam_dirlist *cur, *e;
2052 cur = (struct cam_dirlist *) malloc (sizeof (struct cam_dirlist));
2053 if (cur == NULL)
2059 strcpy (cur->name, entry->name);
2060 DBG (127, "dir_insert: name is %s\n", cur->name);
2062 cur->next = NULL;
2066 dir_head = cur;
2068 else if (strcmp (cur->name, dir_head->name) < 0)
2070 cur->next = dir_head;
2071 dir_head = cur;
2078 if (strcmp (e->next->name, cur->name) > 0)
2080 cur->next = e->next;
2081 e->next = cur;
2085 e->next = cur;
2097 struct cam_dirlist *cur, *e;
2103 cur = dir_head;
2105 free (cur);
2113 cur = e->next;
2115 free (cur);