bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Implement getsockopt (fd, SOL_SOCKET, SO_TYPE, ...)


From: Jérémie Koenig
Subject: Re: [PATCH] Implement getsockopt (fd, SOL_SOCKET, SO_TYPE, ...)
Date: Thu, 15 Jul 2010 16:36:58 +0200

On Thu, Jul 15, 2010 at 4:07 PM, Emilio Pozuelo Monfort
<address@hidden> wrote:
>  error_t
>  S_socket_getopt (struct sock_user *user,
>                 int level, int opt,
>                 char **value, size_t *value_len)
>  {
> +  if (level == SOL_SOCKET)
> +    {
> +      if (opt == SO_TYPE)
> +       {

Maybe switch statements would be more future-friendly?
(just my 2 nitpicking cents)

-- 
Jérémie Koenig <address@hidden>
http://jk.fr.eu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]