diff --git a/src/elconv.c b/src/elconv.c index 6e1f5e5a..19705a38 100644 --- a/src/elconv.c +++ b/src/elconv.c @@ -6,6 +6,9 @@ Contents: Conversion program for ELOG messages $Log$ + Revision 1.4 2004/02/17 11:19:49 midas + Fixed compiler warnings + Revision 1.3 2004/01/07 11:14:53 midas 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], int n_attr, char *text, char *reply_to, char *encoding, char afilename[MAX_ATTACHMENTS][256], - char *buffer[MAX_ATTACHMENTS], INT buffer_size[MAX_ATTACHMENTS], char *tag, - INT tag_size) + char *buffer[MAX_ATTACHMENTS], INT buffer_size[MAX_ATTACHMENTS], char *tag) /********************************************************************\ 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 */ strcpy(dir, data_dir); + offset = tail_size = 0; + tms = NULL; + p = NULL; if (bedit) { /* edit existing message */ strcpy(str, tag); diff --git a/src/elog.c b/src/elog.c index b608aed8..1d57b6ed 100755 --- a/src/elog.c +++ b/src/elog.c @@ -6,6 +6,9 @@ Contents: Electronic logbook utility $Log$ + Revision 1.15 2004/02/17 11:17:03 midas + Fixed compiler warnings + Revision 1.14 2004/02/13 20:58:21 midas Changed email suppression flag from '-s' to '-p' @@ -82,6 +85,7 @@ #include #include #include +#include #ifdef _MSC_VER #include @@ -1016,7 +1020,7 @@ int main(int argc, char *argv[]) size = lseek(fh, 0, SEEK_END); 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, sizeof(text)); return 1;