From 5e22315dec58e4432683ad9ffacb3a320b0301a9 Mon Sep 17 00:00:00 2001 From: Sean Hefty Date: Fri, 23 Feb 2007 13:15:20 -0800 Subject: [PATCH] Fix cmpost to use server IP address. Fix sample program to access the server using its IP address. The displayed comment for the program was incorrect. Signed-off-by: Sean Hefty --- examples/cmpost.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/cmpost.c b/examples/cmpost.c index 6ee93d0..a85264b 100644 --- a/examples/cmpost.c +++ b/examples/cmpost.c @@ -708,8 +708,8 @@ out: int main(int argc, char **argv) { - if (argc != 1 && argc != 3) { - printf("usage: %s [-i server_addr | -l server_lid]\n", argv[0]); + if (argc != 1 && argc != 2) { + printf("usage: %s [server_ip_addr]\n", argv[0]); exit(1); } -- 2.41.0