mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 13:46:26 +08:00
2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/rtems/rtems_dhcp.c: Make format_ip, dhcp_init static. * libnetworking/nfs/bootp_subr.c: Make bootp_strdup_realloc static.
This commit is contained in:
@@ -271,7 +271,7 @@ bootpboot_p_iflist(void)
|
||||
* - allocate or reallocate dst, so that string fits in
|
||||
* - copy string from src to dest
|
||||
*/
|
||||
void *bootp_strdup_realloc(char *dst,const char *src)
|
||||
static void *bootp_strdup_realloc(char *dst,const char *src)
|
||||
{
|
||||
size_t len;
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@ static const char dhcp_request_parameters[5] = { DHCP_SUBNET,
|
||||
/*
|
||||
* Format an IP address in dotted decimal.
|
||||
*/
|
||||
void
|
||||
static void
|
||||
format_ip (unsigned long ip, char* buffer)
|
||||
{
|
||||
sprintf (buffer,
|
||||
@@ -842,7 +842,7 @@ dhcp_interface_has_ip (struct ifreq *ireq, struct socket *so, struct proc *procp
|
||||
* 0: ok
|
||||
* < 0: failed to startup or configure interface
|
||||
*/
|
||||
int
|
||||
static int
|
||||
dhcp_init (int update_files)
|
||||
{
|
||||
struct dhcp_packet call;
|
||||
|
||||
Reference in New Issue
Block a user