Fixed compiler warnings

SVN revision: 779
This commit is contained in:
Stefan Ritt 2004-02-17 11:19:49 +00:00
parent e42b6edc9e
commit 07a47a6ee8
2 changed files with 12 additions and 3 deletions

View File

@ -6,6 +6,9 @@
Contents: Conversion program for ELOG messages Contents: Conversion program for ELOG messages
$Log$ $Log$
Revision 1.4 2004/02/17 11:19:49 midas
Fixed compiler warnings
Revision 1.3 2004/01/07 11:14:53 midas Revision 1.3 2004/01/07 11:14:53 midas
Changed line length Changed line length
@ -562,8 +565,7 @@ INT el_submit(char attr_name[MAX_N_ATTR][NAME_LENGTH],
char attr_value[MAX_N_ATTR][NAME_LENGTH], char attr_value[MAX_N_ATTR][NAME_LENGTH],
int n_attr, char *text, char *reply_to, char *encoding, int n_attr, char *text, char *reply_to, char *encoding,
char afilename[MAX_ATTACHMENTS][256], char afilename[MAX_ATTACHMENTS][256],
char *buffer[MAX_ATTACHMENTS], INT buffer_size[MAX_ATTACHMENTS], char *tag, char *buffer[MAX_ATTACHMENTS], INT buffer_size[MAX_ATTACHMENTS], char *tag)
INT tag_size)
/********************************************************************\ /********************************************************************\
Routine: el_submit Routine: el_submit
@ -656,6 +658,9 @@ INT el_submit(char attr_name[MAX_N_ATTR][NAME_LENGTH],
/* generate new file name YYMMDD.log in data directory */ /* generate new file name YYMMDD.log in data directory */
strcpy(dir, data_dir); strcpy(dir, data_dir);
offset = tail_size = 0;
tms = NULL;
p = NULL;
if (bedit) { if (bedit) {
/* edit existing message */ /* edit existing message */
strcpy(str, tag); strcpy(str, tag);

View File

@ -6,6 +6,9 @@
Contents: Electronic logbook utility Contents: Electronic logbook utility
$Log$ $Log$
Revision 1.15 2004/02/17 11:17:03 midas
Fixed compiler warnings
Revision 1.14 2004/02/13 20:58:21 midas Revision 1.14 2004/02/13 20:58:21 midas
Changed email suppression flag from '-s' to '-p' Changed email suppression flag from '-s' to '-p'
@ -82,6 +85,7 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <time.h> #include <time.h>
#include <ctype.h>
#ifdef _MSC_VER #ifdef _MSC_VER
#include <windows.h> #include <windows.h>
@ -1016,7 +1020,7 @@ int main(int argc, char *argv[])
size = lseek(fh, 0, SEEK_END); size = lseek(fh, 0, SEEK_END);
lseek(fh, 0, SEEK_SET); lseek(fh, 0, SEEK_SET);
if (size > sizeof(text) - 1) { if (size > (int)sizeof(text) - 1) {
printf("Message file \"%s\" is too long (%d bytes max).\n", textfile, printf("Message file \"%s\" is too long (%d bytes max).\n", textfile,
sizeof(text)); sizeof(text));
return 1; return 1;