mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-14 23:09:17 +08:00
22 lines
358 B
C
22 lines
358 B
C
/*
|
|
* RTEMS version of syslog initialization
|
|
*/
|
|
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
|
|
|
|
struct in_addr rtems_bsdnet_log_host_address = {0};
|
|
|
|
int rtems_syslog_initialize(const char *log_host)
|
|
{
|
|
struct in_addr *i;
|
|
|
|
i = &rtems_bsdnet_log_host_address;
|
|
|
|
if (log_host)
|
|
i->s_addr = inet_addr(log_host);
|
|
return 0;
|
|
}
|