From owner-svn-src-projects@FreeBSD.ORG Mon Oct 18 22:25:34 2010 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 492101065670; Mon, 18 Oct 2010 22:25:34 +0000 (UTC) (envelope-from jeff@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 374B98FC12; Mon, 18 Oct 2010 22:25:34 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o9IMPYmF088106; Mon, 18 Oct 2010 22:25:34 GMT (envelope-from jeff@svn.freebsd.org) Received: (from jeff@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o9IMPYMV088104; Mon, 18 Oct 2010 22:25:34 GMT (envelope-from jeff@svn.freebsd.org) Message-Id: <201010182225.o9IMPYMV088104@svn.freebsd.org> From: Jeff Roberson Date: Mon, 18 Oct 2010 22:25:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r214041 - projects/ofed/head/contrib/ofed/librdmacm/examples X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Oct 2010 22:25:34 -0000 Author: jeff Date: Mon Oct 18 22:25:33 2010 New Revision: 214041 URL: http://svn.freebsd.org/changeset/base/214041 Log: - Don't use basename() as it's not needed and this is the non-reentrant version in a multithreaded app. Sponsored by: Isilon Systems, iX Systems, and Panasas. Modified: projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Modified: projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c ============================================================================== --- projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Mon Oct 18 22:24:39 2010 (r214040) +++ projects/ofed/head/contrib/ofed/librdmacm/examples/rping.c Mon Oct 18 22:25:33 2010 (r214041) @@ -1088,9 +1088,9 @@ static int get_addr(char *dst, struct so static void usage(char *name) { printf("%s -s [-vVd] [-S size] [-C count] [-a addr] [-p port]\n", - basename(name)); + name); printf("%s -c [-vVd] [-S size] [-C count] -a addr [-p port]\n", - basename(name)); + name); printf("\t-c\t\tclient side\n"); printf("\t-s\t\tserver side. To bind to any address with IPv6 use -a ::0\n"); printf("\t-v\t\tdisplay ping data to stdout\n");