diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-12 06:39:13 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-12 06:39:13 +0400 |
commit | 1cd065837c6698b0e3dba6977b47061f8419dfba (patch) | |
tree | a7ff66c35914ad5285d42712669d75ee6c3af394 /winsup/cygwin/net.cc | |
parent | b4ec1841997ed8ddfba41818e4806513d8da433d (diff) |
white space
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index 1fc54915c..910eeca36 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -2272,7 +2272,7 @@ cygwin_inet_pton (int family, const char *strptr, void *addrptr) struct in_addr in_val; if (cygwin_inet_aton (strptr, &in_val)) - { + { memcpy (addrptr, &in_val, sizeof (struct in_addr)); return 1; } @@ -2298,7 +2298,7 @@ cygwin_inet_ntop (int family, const void *addrptr, char *strptr, size_t len) __small_sprintf (temp, "%u.%u.%u.%u", p[0], p[1], p[2], p[3]); if (strlen (temp) >= len) - { + { set_errno (ENOSPC); return NULL; } |