diff mbox

libexport.a: fix missing brace in host_ntop() fallback

Message ID 1455805236-30534-1-git-send-email-stefanha@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Stefan Hajnoczi Feb. 18, 2016, 2:20 p.m. UTC
An if statement has been missing a brace since host_ntop() was added in
commit 94ce1eb94babb4c587b2826452fb053cba745098 ("libexport.a: Add
helpers to manage DNS lookups").

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 support/export/hostname.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve Dickson March 16, 2016, 6:19 p.m. UTC | #1
On 02/18/2016 09:20 AM, Stefan Hajnoczi wrote:
> An if statement has been missing a brace since host_ntop() was added in
> commit 94ce1eb94babb4c587b2826452fb053cba745098 ("libexport.a: Add
> helpers to manage DNS lookups").
> 
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Committed... 

steved.

> ---
>  support/export/hostname.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/export/hostname.c b/support/export/hostname.c
> index 4daabe9..94e98a5 100644
> --- a/support/export/hostname.c
> +++ b/support/export/hostname.c
> @@ -69,7 +69,7 @@ host_ntop(const struct sockaddr *sap, char *buf, const size_t buflen)
>  
>  	memset(buf, 0, buflen);
>  
> -	if (sin->sin_family != AF_INET)
> +	if (sin->sin_family != AF_INET) {
>  		(void)strncpy(buf, "bad family", buflen - 1);
>  		return buf;
>  	}
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/support/export/hostname.c b/support/export/hostname.c
index 4daabe9..94e98a5 100644
--- a/support/export/hostname.c
+++ b/support/export/hostname.c
@@ -69,7 +69,7 @@  host_ntop(const struct sockaddr *sap, char *buf, const size_t buflen)
 
 	memset(buf, 0, buflen);
 
-	if (sin->sin_family != AF_INET)
+	if (sin->sin_family != AF_INET) {
 		(void)strncpy(buf, "bad family", buflen - 1);
 		return buf;
 	}