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@
|
install_symlink_command = @install_symlink_command@
|
||||||
|
|
||||||
LIBNAME = $(LIBPREFIX)com_err
|
LIBNAME = $(LIBPREFIX)com_err
|
||||||
|
#LIBEXT = a Always build archive library!
|
||||||
LIBEXT = @LIBEXT@
|
LIBEXT = @LIBEXT@
|
||||||
SHLIBEXT = @SHLIBEXT@
|
SHLIBEXT = @SHLIBEXT@
|
||||||
LIBPREFIX = @LIBPREFIX@
|
LIBPREFIX = @LIBPREFIX@
|
||||||
@@ -49,8 +50,8 @@ include_HEADERS = com_right.h com_err.h
|
|||||||
|
|
||||||
SOURCES = error.c com_err.c compile_et.c
|
SOURCES = error.c com_err.c compile_et.c
|
||||||
OBJECTS = error.o com_err.o $(LIBADD)
|
OBJECTS = error.o com_err.o $(LIBADD)
|
||||||
EXTRA_SOURCES = snprintf.c strcpy_truncate.c strcat_truncate.c
|
EXTRA_SOURCES =
|
||||||
LIBADD = snprintf.o strcpy_truncate.o strcat_truncate.o
|
LIBADD =
|
||||||
|
|
||||||
all: $(lib_LIBRARIES) $(bin_PROGRAMS) $(include_HEADERS)
|
all: $(lib_LIBRARIES) $(bin_PROGRAMS) $(include_HEADERS)
|
||||||
|
|
||||||
|
@@ -54,11 +54,12 @@ error_message (long code)
|
|||||||
{
|
{
|
||||||
static char msg[128];
|
static char msg[128];
|
||||||
const char *p = com_right(_et_list, code);
|
const char *p = com_right(_et_list, code);
|
||||||
if(p == NULL)
|
if (p == NULL)
|
||||||
p = strerror(code);
|
p = strerror(code);
|
||||||
if(p != NULL && *p != '\0')
|
if (p != NULL && *p != '\0') {
|
||||||
strcpy_truncate(msg, p, sizeof(msg));
|
strncpy(msg, p, sizeof(msg));
|
||||||
else
|
msg[sizeof(msg)] = 0;
|
||||||
|
} else
|
||||||
sprintf(msg, "Unknown error %ld", code);
|
sprintf(msg, "Unknown error %ld", code);
|
||||||
return msg;
|
return msg;
|
||||||
}
|
}
|
||||||
|
@@ -41,23 +41,4 @@
|
|||||||
#ifndef __roken_rename_h__
|
#ifndef __roken_rename_h__
|
||||||
#define __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__ */
|
#endif /* __roken_rename_h__ */
|
||||||
|
Reference in New Issue
Block a user