Cleanup library references to libroken.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5522 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -38,6 +38,7 @@ build_symlink_command = @build_symlink_command@
|
||||
install_symlink_command = @install_symlink_command@
|
||||
|
||||
LIBNAME = $(LIBPREFIX)com_err
|
||||
#LIBEXT = a Always build archive library!
|
||||
LIBEXT = @LIBEXT@
|
||||
SHLIBEXT = @SHLIBEXT@
|
||||
LIBPREFIX = @LIBPREFIX@
|
||||
@@ -49,8 +50,8 @@ include_HEADERS = com_right.h com_err.h
|
||||
|
||||
SOURCES = error.c com_err.c compile_et.c
|
||||
OBJECTS = error.o com_err.o $(LIBADD)
|
||||
EXTRA_SOURCES = snprintf.c strcpy_truncate.c strcat_truncate.c
|
||||
LIBADD = snprintf.o strcpy_truncate.o strcat_truncate.o
|
||||
EXTRA_SOURCES =
|
||||
LIBADD =
|
||||
|
||||
all: $(lib_LIBRARIES) $(bin_PROGRAMS) $(include_HEADERS)
|
||||
|
||||
|
@@ -56,9 +56,10 @@ error_message (long code)
|
||||
const char *p = com_right(_et_list, code);
|
||||
if (p == NULL)
|
||||
p = strerror(code);
|
||||
if(p != NULL && *p != '\0')
|
||||
strcpy_truncate(msg, p, sizeof(msg));
|
||||
else
|
||||
if (p != NULL && *p != '\0') {
|
||||
strncpy(msg, p, sizeof(msg));
|
||||
msg[sizeof(msg)] = 0;
|
||||
} else
|
||||
sprintf(msg, "Unknown error %ld", code);
|
||||
return msg;
|
||||
}
|
||||
|
@@ -41,23 +41,4 @@
|
||||
#ifndef __roken_rename_h__
|
||||
#define __roken_rename_h__
|
||||
|
||||
#ifndef HAVE_ASNPRINTF
|
||||
#define asnprintf _com_err_asnprintf
|
||||
#endif
|
||||
#ifndef HAVE_ASPRINTF
|
||||
#define asprintf _com_err_asprintf
|
||||
#endif
|
||||
#ifndef HAVE_SNPRINTF
|
||||
#define snprintf _com_err_snprintf
|
||||
#endif
|
||||
#ifndef HAVE_VASNPRINTF
|
||||
#define vasnprintf _com_err_vasnprintf
|
||||
#endif
|
||||
#ifndef HAVE_VASPRINTF
|
||||
#define vasprintf _com_err_vasprintf
|
||||
#endif
|
||||
#ifndef HAVE_VSNPRINTF
|
||||
#define vsnprintf _com_err_vsnprintf
|
||||
#endif
|
||||
|
||||
#endif /* __roken_rename_h__ */
|
||||
|
Reference in New Issue
Block a user