mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 07:50:17 +01:00
2005-10-24 Dan Williams <dcbw@redhat.com>
* src/backends/interface_parser.c - Add void to function declarations that need it to match patch from Engin AYDOGAN * src/backends/interface_parser.h - Remove unused prototype for ifparser_interfaces() Patch from Engin AYDOGAN <engin@bzzzt.biz> * src/backends/interface_parser.h: - Compile fixes for gcc 4.0.2 (add void) git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
f54406831c
commit
af55ad0ff5
3 changed files with 23 additions and 7 deletions
13
ChangeLog
13
ChangeLog
|
|
@ -1,3 +1,16 @@
|
|||
2005-10-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
* src/backends/interface_parser.c
|
||||
- Add void to function declarations that need it
|
||||
to match patch from Engin AYDOGAN
|
||||
|
||||
* src/backends/interface_parser.h
|
||||
- Remove unused prototype for ifparser_interfaces()
|
||||
|
||||
Patch from Engin AYDOGAN <engin@bzzzt.biz>
|
||||
* src/backends/interface_parser.h:
|
||||
- Compile fixes for gcc 4.0.2 (add void)
|
||||
|
||||
2005-10-24 Dan Williams <dcbw@redhat.com>
|
||||
|
||||
Patch from Tor Krill <tor@krill.nu>
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ void add_data(const char *key,const char *data)
|
|||
|
||||
#define SPACE_OR_TAB(string,ret) {ret = strchr(string,' ');ret=(ret == NULL?strchr(string,'\t'):ret);}
|
||||
|
||||
void ifparser_init()
|
||||
void ifparser_init(void)
|
||||
{
|
||||
FILE *inp = fopen(INTERFACES,"r");
|
||||
int ret = 0;
|
||||
|
|
@ -156,13 +156,13 @@ void _destroy_block(if_block* ifb)
|
|||
return;
|
||||
}
|
||||
|
||||
void ifparser_destroy()
|
||||
void ifparser_destroy(void)
|
||||
{
|
||||
_destroy_block(first);
|
||||
first = last = NULL;
|
||||
}
|
||||
|
||||
if_block *ifparser_getfirst()
|
||||
if_block *ifparser_getfirst(void)
|
||||
{
|
||||
return first;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,13 +40,16 @@ typedef struct _if_block
|
|||
struct _if_block *next;
|
||||
} if_block;
|
||||
|
||||
void ifparser_init();
|
||||
void ifparser_destroy();
|
||||
void ifparser_init(void);
|
||||
void ifparser_destroy(void);
|
||||
|
||||
const char* ifparser_interfaces();
|
||||
if_block *ifparser_getif(const char* iface);
|
||||
if_block *ifparser_getfirst();
|
||||
if_block *ifparser_getfirst(void);
|
||||
const char *ifparser_getkey(if_block* iface, const char *key);
|
||||
|
||||
void add_block(const char *type, const char* name);
|
||||
void add_data(const char *key,const char *data);
|
||||
void _destroy_data(if_data *ifd);
|
||||
void _destroy_block(if_block* ifb);
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue