formatting

This commit is contained in:
Joseph Poirier 2015-06-12 15:42:53 -05:00
parent e6b5538ae0
commit 59eecf37bf

View file

@ -96,11 +96,9 @@ void reverse_list(void) {
struct Node *tmp1; struct Node *tmp1;
struct Node *tmp2; struct Node *tmp2;
tmp1 = head; tmp1 = tail;
head = tail; tail = head;
tail = tmp1; head = tmp1;
tmp1 = head;
while (tmp1 != NULL) { while (tmp1 != NULL) {
tmp2 = tmp1->next; tmp2 = tmp1->next;
tmp1->next = tmp1->prev; tmp1->next = tmp1->prev;