4.1155-freebsd-126-freebsd-12freebsd-9.3
Last change
on this file since 7ba9b7f was
bceabc9,
checked in by Sebastian Huber <sebastian.huber@…>, on 10/09/13 at 20:42:09
|
Move files to match FreeBSD layout
|
-
Property mode set to
100644
|
File size:
358 bytes
|
Line | |
---|
1 | /* |
---|
2 | * RTEMS version of syslog initialization |
---|
3 | */ |
---|
4 | |
---|
5 | #include <sys/socket.h> |
---|
6 | #include <netinet/in.h> |
---|
7 | #include <arpa/inet.h> |
---|
8 | |
---|
9 | |
---|
10 | struct in_addr rtems_bsdnet_log_host_address = {0}; |
---|
11 | |
---|
12 | int rtems_syslog_initialize(const char *log_host) |
---|
13 | { |
---|
14 | struct in_addr *i; |
---|
15 | |
---|
16 | i = &rtems_bsdnet_log_host_address; |
---|
17 | |
---|
18 | if (log_host) |
---|
19 | i->s_addr = inet_addr(log_host); |
---|
20 | return 0; |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.