From: Tom Yu Date: Thu, 9 Jul 2009 22:08:57 +0000 (+0000) Subject: Make datetest buildable again X-Git-Tag: krb5-1.8-alpha1~419 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e79671413896d0b2a2565a5f6c702e4086e7c64;p=krb5.git Make datetest buildable again git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22432 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kadmin/cli/Makefile.in b/src/kadmin/cli/Makefile.in index f02399686..68594c9bf 100644 --- a/src/kadmin/cli/Makefile.in +++ b/src/kadmin/cli/Makefile.in @@ -39,8 +39,9 @@ generate-files-mac: kadmin_ct.c getdate.c clean:: $(RM) $(PROG).local $(PROG) $(COMMON_OBJS) $(KADMIN_OBJS) $(LOCAL_OBJS) clean-unix:: - $(RM) getdate.c kadmin_ct.c + $(RM) datetest getdate.c kadmin_ct.c # for testing getdate.y +# CC_LINK is not meant for compilation and this use may break in the future. datetest: getdate.c - $(CC) -o datetest $(ALL_CFLAGS) $(LDFLAGS) $(LDARGS) -DTEST getdate.c + $(CC_LINK) $(ALL_CFLAGS) -DTEST -o datetest getdate.c diff --git a/src/kadmin/cli/getdate.y b/src/kadmin/cli/getdate.y index 530114598..e427195be 100644 --- a/src/kadmin/cli/getdate.y +++ b/src/kadmin/cli/getdate.y @@ -1053,7 +1053,7 @@ main(ac, av) (void)printf("Enter date, or blank line to exit.\n\t> "); (void)fflush(stdout); while (gets(buff) && buff[0]) { - d = get_date(buff, (struct my_timeb *)NULL); + d = get_date(buff); if (d == -1) (void)printf("Bad format - couldn't convert.\n"); else