lkml.org 
[lkml]   [2013]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC Patch net-next 2/5] net: introduce generic inet_pton()
From
Date
On Thu, 2013-06-27 at 16:32 +0100, Ben Hutchings wrote:
> The return values for this are awful. I think the return value should
> be 0 for success or -EINVAL on error.
>
> The caller can then check addr->sa.sa_family if they want to know the
> address family immediately.

Indeed, I will fix it.

Thanks!



\
 
 \ /
  Last update: 2013-07-01 09:21    [W:0.108 / U:1.216 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site