make test suite compile without warning
Change-Id: I4e4b63d6ce2ae73e5458913aa81308b2691044a9
Reviewed-on: http://gerrit.openafs.org/2223
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
if (bail[length - 1] == '\n')
length--;
test_backspace(ts);
- printf("ABORTED (%.*s)\n", length, bail);
+ printf("ABORTED (%.*s)\n", (int)length, bail);
ts->reported = 1;
}
ts->aborted = 1;
#include <afs/param.h>
#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+#include <time.h>
#include <afs/ktime.h>
+#include <afs/afsutil.h>
+#include <afs/afsutil_prototypes.h>
#include <tap/basic.h>
static struct testTime {
int
main(void)
{
- long code, temp;
+ long code;
+ afs_int32 temp;
int errors;
time_t t;
struct testTime *tt;
errors = 0;
for (tt = testTimes; tt->time; tt++) {
t = 0;
- code = ktime_DateToLong(tt->time, &t);
+ code = ktime_DateToLong(tt->time, &temp);
+ t = temp;
if (tt->code == 1) {
is_int(0, code, "ktime_DateToLong return for %s", tt->time);
ok((time(0) - t <= 1), "ktime_DateToLong result for %s", tt->time);