[PATCH 5/6] nfs-utils: Remove fprintf() call from support/nfs/getport.c

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

 



getport.c is effectively a library, so it should not be emitting messages
via printf.

Signed-off-by: Chuck Lever <chuck.lever@xxxxxxxxxx>
---

 support/nfs/getport.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/support/nfs/getport.c b/support/nfs/getport.c
index 47824a2..bea3c98 100644
--- a/support/nfs/getport.c
+++ b/support/nfs/getport.c
@@ -175,9 +175,6 @@ static void nfs_gp_set_port(struct sockaddr *sap, const in_port_t port)
 	case AF_INET6:
 		sin6->sin6_port = port;
 		break;
-	default:
-		fprintf(stderr, "%s: unrecognized address family\n",
-			__func__);
 	}
 }
 

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux