mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 23:08:40 +02:00
-- Compiles with no warnings with -Wall flag
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
/* */
|
/* */
|
||||||
/* CUSTOM.H */
|
/* CUSTOM.H.IN */
|
||||||
/* */
|
/* */
|
||||||
/* Contains various configuration parameters for Remind */
|
/* Contains various configuration parameters for Remind */
|
||||||
/* which you can customize. */
|
/* 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 */
|
/* LAT_DEG, LAT_MIN and LAT_SEC: Latitude of your location */
|
||||||
@@ -211,9 +211,6 @@
|
|||||||
|
|
||||||
#ifdef UNIX
|
#ifdef UNIX
|
||||||
#define _POSIX_SOURCE
|
#define _POSIX_SOURCE
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SYSV
|
|
||||||
#define _SVID_SOURCE
|
#define _SVID_SOURCE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
#include "config.h"
|
#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 <stdio.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
@@ -607,7 +607,7 @@ PUBLIC int TriggerReminder(ParsePtr p, Trigger *t, TimeTrig *tim, int jul,
|
|||||||
int r, y, m, d;
|
int r, y, m, d;
|
||||||
char PrioExpr[25];
|
char PrioExpr[25];
|
||||||
DynamicBuffer buf;
|
DynamicBuffer buf;
|
||||||
char *s, *s2;
|
char *s;
|
||||||
Value v;
|
Value v;
|
||||||
|
|
||||||
DBufInit(&buf);
|
DBufInit(&buf);
|
||||||
@@ -941,7 +941,7 @@ PUBLIC int DoMsgCommand(char *cmd, char *msg)
|
|||||||
|
|
||||||
#ifdef WANT_SHELL_ESCAPING
|
#ifdef WANT_SHELL_ESCAPING
|
||||||
DynamicBuffer buf;
|
DynamicBuffer buf;
|
||||||
char *s, *t;
|
char *s;
|
||||||
|
|
||||||
DBufInit(&buf);
|
DBufInit(&buf);
|
||||||
DBufInit(&execBuffer);
|
DBufInit(&execBuffer);
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
#include "config.h"
|
#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
|
#define L_IN_DOSUBST
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -616,6 +616,7 @@ int jul, mode;
|
|||||||
if (!has_quote) {
|
if (!has_quote) {
|
||||||
if (mode == CAL_MODE && t->typ == RUN_TYPE) {
|
if (mode == CAL_MODE && t->typ == RUN_TYPE) {
|
||||||
*DBufValue(dbuf) = 0;
|
*DBufValue(dbuf) = 0;
|
||||||
|
dbuf->len = 0;
|
||||||
}
|
}
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
@@ -645,6 +646,9 @@ int jul, mode;
|
|||||||
*os = 0;
|
*os = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Violating encapsulation here!!!! */
|
||||||
|
dbuf->len = strlen(dbuf->buffer);
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
#include "config.h"
|
#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>
|
#include <stdio.h>
|
||||||
|
|
||||||
@@ -150,8 +150,6 @@ static int ReadLineFromFile()
|
|||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
int l;
|
int l;
|
||||||
char *ptr;
|
|
||||||
char *tmp;
|
|
||||||
|
|
||||||
DynamicBuffer buf;
|
DynamicBuffer buf;
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
/***************************************************************/
|
/***************************************************************/
|
||||||
|
|
||||||
#include "config.h"
|
#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 <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -154,8 +154,6 @@ Token *tok;
|
|||||||
char *s;
|
char *s;
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
char *t;
|
|
||||||
int len=0;
|
|
||||||
DynamicBuffer buf;
|
DynamicBuffer buf;
|
||||||
DBufInit(&buf);
|
DBufInit(&buf);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user