/[radius]/radius/radwho/radwho.c
ViewVC logotype

Diff of /radius/radwho/radwho.c

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

revision 1.25 by gray, Tue Jul 9 12:29:15 2002 UTC revision 1.26 by gray, Wed Apr 30 08:53:31 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,2002,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    
 #ifndef lint  
 static char rcsid[] =  
 "$Id$";  
 #endif  
   
18  #if defined(HAVE_CONFIG_H)  #if defined(HAVE_CONFIG_H)
19  # include <config.h>  # include <config.h>
20  #endif  #endif
# Line 113  Realm: (realm)(newline)" }, Line 108  Realm: (realm)(newline)" },
108  };  };
109    
110  static char *  static char *
111  lookup_format(name)  lookup_format(char *name)
         char *name;  
112  {  {
113          int i;          int i;
114          for (i = 0; fmtdef[i].name; i++)          for (i = 0; fmtdef[i].name; i++)
# Line 165  static struct argp_option options[] = { Line 159  static struct argp_option options[] = {
159  };  };
160    
161  static error_t  static error_t
162  parse_opt (key, arg, state)  parse_opt(int key, char *arg, struct argp_state *state)
         int key;  
         char *arg;  
         struct argp_state *state;  
163  {  {
164          switch (key) {          switch (key) {
165          case 'A': /* display all entries */          case 'A': /* display all entries */
# Line 230  static struct argp argp = { Line 221  static struct argp argp = {
221    
222    
223  int  int
224  main(argc, argv)  main(int  argc, char **argv)
         int  argc;  
         char **argv;  
225  {  {
226          char inbuf[128];          char inbuf[128];
227          char *path;          char *path;
# Line 312  main(argc, argv) Line 301  main(argc, argv)
301  }  }
302    
303  void  void
304  tty_to_port(rt, tty)  tty_to_port(struct radutmp *rt, char *tty)
         struct radutmp *rt;  
         char *tty;  
305  {  {
306          char *p;          char *p;
307    
# Line 397  print_header() Line 384  print_header()
384  }  }
385    
386  int  int
387  want_rad_record(rt)  want_rad_record(struct radutmp *rt)
         struct radutmp *rt;  
388  {  {
389          if (username && strcmp(rt->login, username))          if (username && strcmp(rt->login, username))
390                  return 0;                  return 0;

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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