Date: Fri, 3 Nov 2006 00:49:05 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 109085 for review Message-ID: <200611030049.kA30n5kf013516@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611030049.kA30n5kf013516>