/[radius]/radius/radiusd/menu.c
ViewVC logotype

Diff of /radius/radiusd/menu.c

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

revision 1.18 by gray, Fri Apr 18 05:27:10 2003 UTC revision 1.19 by gray, Wed Apr 30 08:38:30 2003 UTC
# Line 1  Line 1 
1  /* This file is part of GNU RADIUS.  /* This file is part of GNU Radius.
2     Copyright (C) 2000,2001, Sergey Poznyakoff     Copyright (C) 2000,2001,2003 Sergey Poznyakoff
3    
4     This program is free software; you can redistribute it and/or modify     GNU Radius is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.     (at your option) any later version.
8    
9     This program is distributed in the hope that it will be useful,     GNU Radius is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.     GNU General Public License for more details.
13    
14     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software Foundation,     along with GNU Radius; if not, write to the Free Software Foundation,
16     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
17    
18  #if defined(HAVE_CONFIG_H)  #if defined(HAVE_CONFIG_H)
# Line 25  Line 25 
25  #include <stdio.h>  #include <stdio.h>
26  #include <radiusd.h>  #include <radiusd.h>
27    
 #ifndef lint  
 static char rcsid[] =  
 "@(#) $Id$";  
 #endif  
   
28  static VALUE_PAIR * menu_pairs(char *menu_name, char  *menu_selection);  static VALUE_PAIR * menu_pairs(char *menu_name, char  *menu_selection);
29    
   
30  void  void
31  process_menu(radreq, activefd)  process_menu(RADIUS_REQ *radreq, int activefd)
         RADIUS_REQ        *radreq;  
         int             activefd;  
32  {  {
33          VALUE_PAIR *pair, *term_pair, *new_pair;          VALUE_PAIR *pair, *term_pair, *new_pair;
34          char menu_name[MAX_MENU_NAME];          char menu_name[MAX_MENU_NAME];
# Line 109  process_menu(radreq, activefd) Line 101  process_menu(radreq, activefd)
101  }  }
102    
103  char *  char *
104  get_menu(menu_name)  get_menu(char *menu_name)
         char    *menu_name;  
105  {  {
106          FILE    *fp;          FILE    *fp;
107          static  char menu_buffer[MAX_MENU_SIZE];          static  char menu_buffer[MAX_MENU_SIZE];
# Line 162  get_menu(menu_name) Line 153  get_menu(menu_name)
153  }  }
154                                
155  VALUE_PAIR *  VALUE_PAIR *
156  menu_pairs(menu_name, menu_selection)  menu_pairs(char *menu_name, char *menu_selection)
         char    *menu_name;  
         char    *menu_selection;  
157  {  {
158          FILE    *fp;          FILE    *fp;
159          char    *menu_path;          char    *menu_path;

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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