PERFORCE change 109085 for review
Paolo Pisati
piso at FreeBSD.org
Fri Nov 3 00:49:06 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=109085
Change 109085 by piso at 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);
More information about the p4-projects
mailing list