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

Diff of /radius/lib/avl.c

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

revision 1.12 by gray, Sun Sep 28 22:15:46 2003 UTC revision 1.13 by gray, Tue Oct 14 13:48:17 2003 UTC
# Line 440  avl_dup(VALUE_PAIR *from) Line 440  avl_dup(VALUE_PAIR *from)
440    
441  /* write a pairlist to the file */  /* write a pairlist to the file */
442  void  void
443  avl_fprint(FILE *fp, VALUE_PAIR *avl)  avl_fprint(FILE *fp, char *prefix, int typeflag, VALUE_PAIR *avl)
444  {  {
445          char *save;          char *save;
446            if (!prefix)
447                    prefix = "";
448          for (;avl; avl = avl->next) {          for (;avl; avl = avl->next) {
449                  fprintf(fp, "    %s\n", format_pair(avl, &save));                  fprintf(fp, "%s%s\n", prefix,
450                            format_pair(avl, typeflag, &save));
451                  free(save);                  free(save);
452          }          }
453  }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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