svn rev #24081: trunk/src/kadmin/cli/
ghudson@MIT.EDU
ghudson at MIT.EDU
Fri May 21 15:03:45 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=24081
Commit By: ghudson
Log Message:
Use ANSI-style function definitions in our copy of getdate.y.
Changed Files:
U trunk/src/kadmin/cli/getdate.y
Modified: trunk/src/kadmin/cli/getdate.y
===================================================================
--- trunk/src/kadmin/cli/getdate.y 2010-05-21 14:11:57 UTC (rev 24080)
+++ trunk/src/kadmin/cli/getdate.y 2010-05-21 19:03:45 UTC (rev 24081)
@@ -530,19 +530,14 @@
/* ARGSUSED */
static int
-yyerror(s)
- char *s;
+yyerror(char *s)
{
return 0;
}
static time_t
-ToSeconds(Hours, Minutes, Seconds, Meridian)
- time_t Hours;
- time_t Minutes;
- time_t Seconds;
- MERIDIAN Meridian;
+ToSeconds(time_t Hours, time_t Minutes, time_t Seconds, MERIDIAN Meridian)
{
if (Minutes < 0 || Minutes > 59 || Seconds < 0 || Seconds > 59)
return -1;
@@ -570,15 +565,8 @@
* of seconds since 00:00:00 1/1/70 GMT.
*/
static time_t
-Convert(Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode)
- time_t Month;
- time_t Day;
- time_t Year;
- time_t Hours;
- time_t Minutes;
- time_t Seconds;
- MERIDIAN Meridian;
- DSTMODE DSTmode;
+Convert(time_t Month, time_t Day, time_t Year, time_t Hours, time_t Minutes,
+ time_t Seconds, MERIDIAN Meridian, DSTMODE DSTmode)
{
static int DaysInMonth[12] = {
31, 0, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
@@ -625,10 +613,7 @@
static time_t
-DSTcorrect(Start, Future, error)
- time_t Start;
- time_t Future;
- int *error;
+DSTcorrect(time_t Start, time_t Future, int *error)
{
time_t StartDay;
time_t FutureDay;
@@ -651,11 +636,7 @@
static time_t
-RelativeDate(Start, DayOrdinal, DayNumber, error)
- time_t Start;
- time_t DayOrdinal;
- time_t DayNumber;
- int *error;
+RelativeDate(time_t Start, time_t DayOrdinal, time_t DayNumber, int *error)
{
struct tm *tm;
time_t now;
@@ -673,9 +654,7 @@
static time_t
-RelativeMonth(Start, RelMonth)
- time_t Start;
- time_t RelMonth;
+RelativeMonth(time_t Start, time_t RelMonth)
{
struct tm *tm;
time_t Month;
@@ -704,8 +683,7 @@
static int
-LookupWord(buff)
- char *buff;
+LookupWord(char *buff)
{
register char *p;
register char *q;
@@ -859,8 +837,7 @@
/* Yield A - B, measured in seconds. */
static time_t
-difftm(a, b)
- struct tm *a, *b;
+difftm(struct tm *a, struct tm *b)
{
int ay = a->tm_year + (TM_YEAR_ORIGIN - 1);
int by = b->tm_year + (TM_YEAR_ORIGIN - 1);
@@ -887,8 +864,7 @@
time_t get_date(char *);
time_t
-get_date(p)
- char *p;
+get_date(char *p)
{
struct my_timeb *now = NULL;
struct tm *tm, gmt;
@@ -1044,9 +1020,7 @@
#if defined(TEST)
/* ARGSUSED */
-main(ac, av)
- int ac;
- char *av[];
+main(int ac, char *av[])
{
char buff[128];
time_t d;
More information about the cvs-krb5
mailing list