Skip to content

Commit

Permalink
Const and prototype fixes for yyyymm.h and related sources.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Jun 11, 2004
1 parent b68c4b0 commit 12399ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions date2yyyymm.c
Expand Up @@ -2,8 +2,7 @@
/*$Id$*/
#include "yyyymm.h"

unsigned int date2yyyymm(s)
char *s;
unsigned int date2yyyymm(const char *s)
/* expects a qmail date string s and returns yyyymm */
/* if there are problems, it returns 0. If there is no terminating char */
/* we may segfault if the syntax is bad. Assure that the ';' is there */
Expand Down
5 changes: 2 additions & 3 deletions dateline.c
Expand Up @@ -6,11 +6,10 @@

static char strnum[FMT_ULONG];

int dateline(dt,d)
stralloc *dt; unsigned long d;
int dateline(stralloc *dt, unsigned long d)
/* converts yyyymm from unsigned long d to text dt */
{
char *mo;
const char *mo;
switch (d % 100) {
case 1: mo = "January"; break;
case 2: mo = "February"; break;
Expand Down
2 changes: 1 addition & 1 deletion yyyymm.h
Expand Up @@ -3,7 +3,7 @@

#include "stralloc.h"

extern unsigned int date2yyyymm(char *);
extern unsigned int date2yyyymm(const char *);
extern int dateline(stralloc *, unsigned long);

#endif
Expand Down

0 comments on commit 12399ee

Please sign in to comment.