fix some lint

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@752 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-03-31 06:33:20 +00:00
parent a3c9ac6853
commit a79c961d65
2 changed files with 5 additions and 4 deletions

View File

@ -28,6 +28,8 @@
\********************************************************************/ \********************************************************************/
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> #include <time.h>
#include "config.h" #include "config.h"
@ -102,7 +104,8 @@ void printDate (char * buff, int day, int month, int year)
* *
* Globals: global dateFormat value * Globals: global dateFormat value
*/ */
int scanDate(const char *buff, int *day, int *month, int *year) void
scanDate(const char *buff, int *day, int *month, int *year)
{ {
char *dupe, *tmp, *first_field, *second_field, *third_field; char *dupe, *tmp, *first_field, *second_field, *third_field;
int iday, imonth, iyear; int iday, imonth, iyear;
@ -165,8 +168,6 @@ int scanDate(const char *buff, int *day, int *month, int *year)
*year=iyear; *year=iyear;
*month=imonth; *month=imonth;
*day=iday; *day=iday;
return;
} }
/** /**

View File

@ -110,7 +110,7 @@ typedef enum
/** PROTOTYPES ******************************************************/ /** PROTOTYPES ******************************************************/
void printDate (char * buff, int day, int month, int year); void printDate (char * buff, int day, int month, int year);
int scanDate (const char *buff, int *day, int *monty, int *year); void scanDate (const char *buff, int *day, int *monty, int *year);
char dateSeparator(void); char dateSeparator(void);
void adjustDay( Date *date, int adj ); void adjustDay( Date *date, int adj );