dthelp: Resolve 106 compiler warnings.
This commit is contained in:
@@ -127,7 +127,7 @@ int m_lower(
|
||||
#endif
|
||||
) ;
|
||||
|
||||
void main(
|
||||
int main(
|
||||
#if defined(M_PROTO)
|
||||
int argc, char **argv
|
||||
#endif
|
||||
|
||||
@@ -155,6 +155,7 @@ a #define of MAXD to the length of the longest delimiter is written to
|
||||
delim.h.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#if defined(MSDOS)
|
||||
@@ -169,7 +170,7 @@ delim.h.
|
||||
#include "cont.h"
|
||||
|
||||
/* Main procedure */
|
||||
void main(argc, argv)
|
||||
int main(argc, argv)
|
||||
int argc ;
|
||||
char **argv ;
|
||||
{
|
||||
|
||||
@@ -51,7 +51,7 @@ void dumpdlmptr(M_NOPAR)
|
||||
if (n) fputs(",\n", delim);
|
||||
fprintf(delim, " %s", dlmptr[n]);
|
||||
}
|
||||
fprintf(delim, endif);
|
||||
fprintf(delim, "%s", endif);
|
||||
}
|
||||
|
||||
/* Output the generated data structures */
|
||||
@@ -83,8 +83,8 @@ void dumptree(sparse)
|
||||
else fprintf(context, "0");
|
||||
if (i < ccount - 1) fprintf(context, ",\n ");
|
||||
}
|
||||
fprintf(delim, endif);
|
||||
fprintf(context, endif);
|
||||
fprintf(delim, "%s", endif);
|
||||
fprintf(context, "%s", endif);
|
||||
nextcon(sparse);
|
||||
}
|
||||
|
||||
@@ -599,8 +599,8 @@ void nextcon(sparse)
|
||||
if (i > 0) fprintf(context, ",\n");
|
||||
fprintf(context, " %d", firstinrow);
|
||||
}
|
||||
fprintf(delim, endif);
|
||||
fprintf(context, endif);
|
||||
fprintf(delim, "%s", endif);
|
||||
fprintf(context, "%s", endif);
|
||||
}
|
||||
else {
|
||||
fprintf(context,
|
||||
@@ -616,7 +616,7 @@ void nextcon(sparse)
|
||||
if (i < ccount - 1) fprintf(context, ",");
|
||||
fprintf(context, "\n");
|
||||
}
|
||||
fprintf(context, endif);
|
||||
fprintf(context, "%s", endif);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -306,8 +306,8 @@ void esuffix(M_NOPAR)
|
||||
void msgline(text)
|
||||
char *text ;
|
||||
{
|
||||
fprintf(stderr, text) ;
|
||||
fprintf(m_errfile, text) ;
|
||||
fprintf(stderr, "%s", text) ;
|
||||
fprintf(m_errfile, "%s", text) ;
|
||||
}
|
||||
|
||||
/* Print something to both stderr and m_errfile */
|
||||
|
||||
@@ -58,7 +58,7 @@ struct data {
|
||||
char linedir[] = "#line" ;
|
||||
char *p = linedir, *q = linedir + 1 ;
|
||||
|
||||
void main(
|
||||
int main(
|
||||
#if defined(M_PROTO)
|
||||
int argc, char **argv
|
||||
#endif
|
||||
@@ -76,7 +76,7 @@ int nextchar(
|
||||
#endif
|
||||
) ;
|
||||
|
||||
void main(argc, argv)
|
||||
int main(argc, argv)
|
||||
int argc ;
|
||||
char **argv ;
|
||||
{
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
Copyright 1992 Hewlett-Packard Co.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include "basic.h"
|
||||
#include "trie.h"
|
||||
#include "cont.h"
|
||||
|
||||
Reference in New Issue
Block a user