From owner-p4-projects@FreeBSD.ORG Fri Nov 3 00:49:06 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1FB0A16A47C; Fri, 3 Nov 2006 00:49:05 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF75216A417 for ; Fri, 3 Nov 2006 00:49:05 +0000 (UTC) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C87A43D46 for ; Fri, 3 Nov 2006 00:49:05 +0000 (GMT) (envelope-from piso@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kA30n54u013519 for ; Fri, 3 Nov 2006 00:49:05 GMT (envelope-from piso@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kA30n5kf013516 for perforce@freebsd.org; Fri, 3 Nov 2006 00:49:05 GMT (envelope-from piso@freebsd.org) Date: Fri, 3 Nov 2006 00:49:05 GMT Message-Id: <200611030049.kA30n5kf013516@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to piso@freebsd.org using -f From: Paolo Pisati To: Perforce Change Reviews Cc: Subject: PERFORCE change 109085 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 00:49:06 -0000 http://perforce.freebsd.org/chv.cgi?CH=109085 Change 109085 by piso@piso_newluxor on 2006/11/03 00:48:35 Use fprintf instead of fputs. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#21 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#21 (text+ko) ==== @@ -1571,18 +1571,16 @@ handle = dlopen (path, RTLD_LAZY); if (!handle) { - fputs (dlerror(), stderr); - fputs ("\n", stderr); - return (EINVAL); + fprintf(stderr, "%s\n", dlerror()); + return (EINVAL); } p = dlsym(handle, "alias_mod"); if ((error = dlerror()) != NULL) { - fputs(error, stderr); - fputs ("\n", stderr); - return (EINVAL); + fprintf(stderr, "%s\n", dlerror()); + return (EINVAL); } - + t = malloc(sizeof(struct dll)); if (t == NULL) return (ENOMEM); @@ -1590,16 +1588,15 @@ t->handle = handle; if (attach_dll(t) == EEXIST) { free(t); - fputs("dll conflict\n", stderr); + fprintf(stderr, "dll conflict\n"); return (EEXIST); } m = dlsym(t->handle, "handlers"); if ((error = dlerror()) != NULL) { - fputs(error, stderr); - fputs ("\n", stderr); - return (EINVAL); - } + fprintf(stderr, "%s\n", error); + return (EINVAL); + } LibAliasAttachHandlers(m); return (0);