Make the USD test program build again. Note that this isn't much use
unless you have a tape device connected to your machine.
Change-Id: I01bae4035ef3db966d9f79fb5796e3608efa2cfd
Reviewed-on: http://gerrit.openafs.org/4767
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
INCDIRS= -I${DESTDIR}/include -I..
-CFLAGS = $(DBUG) -I${SRCDIR}/include ${INCDIRS} ${XCFLAGS} ${ARCHFLAGS}
-LIBUSD=DEST/lib/afs/libusd.a
+LIBUSD=${TOP_LIBDIR}/libusd.a
#####################################################################
# include files
-INCLS=${SRCDIR}/include/afs/param.h ${SRCDIR}/include/afs/usd.h
+INCLS=${TOP_INCDIR}/afs/param.h ${TOP_INCDIR}/afs/usd.h
# build usd_test
* directory or online at http://www.openafs.org/dl/license10.html
*/
-* /
+
/* usd_test.c: Tests the usd library by opening a tape device,
* writing a few blocks of data to it, doing a fsf, bsf
*/
#include <afs/param.h>
#include <stdio.h>
+#include <stdlib.h>
+
#include <afs/usd.h>
#ifdef AFS_NT40_ENV
#include <windows.h>
return 1;
}
printf("%s: usd library, all tests passed!\n", whoami);
+
+ return 0;
}