dthelp: Resolve 106 compiler warnings.

This commit is contained in:
Peter Howkins
2012-08-30 21:37:25 +01:00
parent f6bfbcb521
commit 71f8af6943
19 changed files with 238 additions and 232 deletions

View File

@@ -36,7 +36,7 @@
#include "entext.h"
/* Main procedure */
void main(argc, argv)
int main(argc, argv)
int argc ;
char **argv ;
{
@@ -45,7 +45,7 @@ void main(argc, argv)
"prevcon=%d,token=%d,curcon=%d,scanval='%c'(%d),line=%d,netlevel=%d\n" ;
static char name[] = "m_name = '%s'\n" ;
static char literal[] = "m_literal = '%s'\n" ;
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(__uxp__) || defined(__osf__) || defined(linux)
char buffer[M_LITLEN + 80] ;
#else
#define max4(a,b,c,d) (a>b&&a>c&&a>d) ? a : ((b>c&&b>d) ? b : (c>d ? c : d))
@@ -113,5 +113,7 @@ void main(argc, argv)
}
/* At EOF */
m_done() ;
return EXIT_SUCCESS;
}

View File

@@ -454,7 +454,7 @@ LOGICAL m_lookent(
#endif
) ;
void main(
int main(
#if defined(M_PROTO)
int argc, char **argv
#endif