Commit
7fe4125fe3435092b75ed29b884d8d3c2d1a2cad 'dir/vol: Die() really
does' overlooked src/dir/test/dtest.c, breaking its build.
Fix the signature of Die() and the makefile so dtest can be built.
In addition, change the Makefile so it is always built.
Change-Id: I18129acbfdaa770987c7f0b8055ff593f776e518
Reviewed-on: https://gerrit.openafs.org/13794
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
all: \
${TOP_LIBDIR}/libdir.a \
- depinstall
+ depinstall \
+ test
depinstall: \
${TOP_INCDIR}/afs/dir.h
$(RANLIB) $@
.PHONY: test
-test:
+test: ${TOP_LIBDIR}/libdir.a
cd test && $(MAKE)
buffer.o: buffer.c dir.h
include @TOP_OBJDIR@/src/config/Makefile.lwp
-LIBS = ${srcdir}/lib/libdir.a ${srcdir}/lib/util.a ${srcdir}/lib/liblwp.a
+LIBS = ${srcdir}/lib/libdir.a ${srcdir}/lib/liblwp.a \
+ ${srcdir}/lib/libopr.a
all: dtest
#include <roken.h>
#include <afs/dir.h>
+#include <afs/opr.h>
long fidCounter = 0;
}
void
-Die(char *msg)
+Die(const char *msg)
{
printf("Something died with this message: %s\n", msg);
+ opr_abort();
}
void