-- Compiles with no warnings with -Wall flag

This commit is contained in:
dfs
1998-02-14 03:31:58 +00:00
parent 6d5ed33b54
commit 69d85c5228
5 changed files with 12 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
/***************************************************************/
/* */
/* CUSTOM.H */
/* CUSTOM.H.IN */
/* */
/* Contains various configuration parameters for Remind */
/* which you can customize. */
@@ -10,7 +10,7 @@
/* */
/***************************************************************/
/* $Id: custom.h,v 1.8 1998-02-07 05:35:56 dfs Exp $ */
/* $Id: custom.h,v 1.9 1998-02-14 03:31:58 dfs Exp $ */
/*---------------------------------------------------------------------*/
/* LAT_DEG, LAT_MIN and LAT_SEC: Latitude of your location */
@@ -211,9 +211,6 @@
#ifdef UNIX
#define _POSIX_SOURCE
#endif
#ifdef SYSV
#define _SVID_SOURCE
#endif

View File

@@ -12,7 +12,7 @@
/***************************************************************/
#include "config.h"
static char const RCSID[] = "$Id: dorem.c,v 1.5 1998-02-10 04:11:44 dfs Exp $";
static char const RCSID[] = "$Id: dorem.c,v 1.6 1998-02-14 03:31:59 dfs Exp $";
#include <stdio.h>
#include <ctype.h>
@@ -607,7 +607,7 @@ PUBLIC int TriggerReminder(ParsePtr p, Trigger *t, TimeTrig *tim, int jul,
int r, y, m, d;
char PrioExpr[25];
DynamicBuffer buf;
char *s, *s2;
char *s;
Value v;
DBufInit(&buf);
@@ -941,7 +941,7 @@ PUBLIC int DoMsgCommand(char *cmd, char *msg)
#ifdef WANT_SHELL_ESCAPING
DynamicBuffer buf;
char *s, *t;
char *s;
DBufInit(&buf);
DBufInit(&execBuffer);

View File

@@ -11,7 +11,7 @@
/***************************************************************/
#include "config.h"
static char const RCSID[] = "$Id: dosubst.c,v 1.5 1998-02-10 03:33:49 dfs Exp $";
static char const RCSID[] = "$Id: dosubst.c,v 1.6 1998-02-14 03:31:59 dfs Exp $";
#define L_IN_DOSUBST
#include <stdio.h>
@@ -616,6 +616,7 @@ int jul, mode;
if (!has_quote) {
if (mode == CAL_MODE && t->typ == RUN_TYPE) {
*DBufValue(dbuf) = 0;
dbuf->len = 0;
}
return OK;
}
@@ -645,6 +646,9 @@ int jul, mode;
*os = 0;
}
/* Violating encapsulation here!!!! */
dbuf->len = strlen(dbuf->buffer);
return OK;
}

View File

@@ -12,7 +12,7 @@
/***************************************************************/
#include "config.h"
static char const RCSID[] = "$Id: files.c,v 1.6 1998-02-10 03:15:49 dfs Exp $";
static char const RCSID[] = "$Id: files.c,v 1.7 1998-02-14 03:32:00 dfs Exp $";
#include <stdio.h>
@@ -150,8 +150,6 @@ static int ReadLineFromFile()
#endif
{
int l;
char *ptr;
char *tmp;
DynamicBuffer buf;

View File

@@ -11,7 +11,7 @@
/***************************************************************/
#include "config.h"
static char const RCSID[] = "$Id: token.c,v 1.5 1998-02-12 03:32:16 dfs Exp $";
static char const RCSID[] = "$Id: token.c,v 1.6 1998-02-14 03:32:01 dfs Exp $";
#include <stdio.h>
#include <string.h>
@@ -154,8 +154,6 @@ Token *tok;
char *s;
#endif
{
char *t;
int len=0;
DynamicBuffer buf;
DBufInit(&buf);