/[radius]/radius/lib/list.c
ViewVC logotype

Diff of /radius/lib/list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by gray, Tue Jul 29 10:17:06 2003 UTC revision 1.9 by gray, Tue Sep 23 17:14:10 2003 UTC
# Line 154  void * Line 154  void *
154  list_item(struct list *list, size_t n)  list_item(struct list *list, size_t n)
155  {  {
156          struct list_entry *p;          struct list_entry *p;
157          if (n > list->count)          if (n >= list->count)
158                  return NULL;                  return NULL;
159          for (p = list->head; n > 0 && p; p = p->next, n--)          for (p = list->head; n > 0 && p; p = p->next, n--)
160                  ;                  ;

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26