mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
committed by
Christian Helmuth
parent
b9e7fb1edf
commit
bcefc874d6
@ -18,7 +18,7 @@
|
||||
#include <os/config.h>
|
||||
#include <util/string.h>
|
||||
|
||||
extern void create_lxip_plugin(char *address_config);
|
||||
extern void create_lxip_plugin(char const *address_config);
|
||||
|
||||
void __attribute__((constructor)) init_libc_lxip(void)
|
||||
{
|
||||
@ -26,7 +26,7 @@ void __attribute__((constructor)) init_libc_lxip(void)
|
||||
char netmask_str[16] = {0};
|
||||
char gateway_str[16] = {0};
|
||||
char address_buf[128];
|
||||
char *address_config;
|
||||
char const *address_config;
|
||||
|
||||
try {
|
||||
Genode::Xml_node libc_node = Genode::config()->xml_node().sub_node("libc");
|
||||
|
@ -81,7 +81,7 @@ struct Plugin : Libc::Plugin
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
Plugin(char *address_config);
|
||||
Plugin(char const *address_config);
|
||||
|
||||
bool supports_select(int nfds,
|
||||
fd_set *readfds,
|
||||
@ -138,7 +138,7 @@ struct Plugin : Libc::Plugin
|
||||
};
|
||||
|
||||
|
||||
Plugin::Plugin(char *address_config) : socketcall(Lxip::init(address_config))
|
||||
Plugin::Plugin(char const *address_config) : socketcall(Lxip::init(address_config))
|
||||
{
|
||||
PDBG("using the lxip libc plugin");
|
||||
}
|
||||
@ -649,7 +649,7 @@ int Plugin::translate_ops_linux(int optname)
|
||||
} /* unnamed namespace */
|
||||
|
||||
|
||||
void create_lxip_plugin(char *address_config)
|
||||
void create_lxip_plugin(char const *address_config)
|
||||
{
|
||||
static Plugin lxip_plugin(address_config);
|
||||
}
|
||||
|
Reference in New Issue
Block a user