chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] Revert previous dev_d.c change, it's not what is causing HAL problems.
[elogind.git]
/
klibc
/
klibc
/
inet
/
inet_addr.c
1
/*
2
* inet/inet_addr.c
3
*/
4
5
#include <arpa/inet.h>
6
#include <stdio.h>
7
8
uint32_t inet_addr(const char *str)
9
{
10
struct in_addr a;
11
int rv = inet_aton(str, &a);
12
13
return rv ? INADDR_NONE : a.s_addr;
14
}