C++ compatibility patch from Andrey Kotrekhov <kota@at.com.ua>
authoraland <aland>
Mon, 29 Jul 2002 20:12:44 +0000 (20:12 +0000)
committeraland <aland>
Mon, 29 Jul 2002 20:12:44 +0000 (20:12 +0000)
C++ has restriction that the struct name (class name) in the struct
declaration reserved for constructor.

src/include/radiusd.h

index ae80d63..0cc105e 100644 (file)
@@ -95,7 +95,7 @@ typedef struct nas {
        struct nas              *next;
 } NAS;
 
-typedef struct realm {
+typedef struct _realm {
        char                    realm[64];
        char                    server[64];
        uint32_t                ipaddr;
@@ -110,7 +110,7 @@ typedef struct realm {
        time_t                  wakeup;
        int                     acct_active;
        time_t                  acct_wakeup;
-       struct realm            *next;
+       struct _realm           *next;
 } REALM;
 
 typedef struct pair_list {