Fix some warnings.
This commit is contained in:
@@ -29,8 +29,6 @@
|
||||
#include "userinc.h"
|
||||
#include "globdec.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
void assert_hometopic_exists(void)
|
||||
{
|
||||
static const char hometopic[] = "-HOMETOPIC";
|
||||
|
||||
@@ -165,8 +165,8 @@
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
m_piaction("UNDEFINED MACHINE",
|
||||
"m-machine",
|
||||
m_piaction((M_WCHAR *) "UNDEFINED MACHINE",
|
||||
(M_WCHAR *) "m-machine",
|
||||
M_SDATA) ;
|
||||
#endif
|
||||
</CODE>
|
||||
|
||||
@@ -37,8 +37,6 @@
|
||||
#define TAGDOTOPT "helptag.opt"
|
||||
#define DOTOPT ".opt"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
void options(LOGICAL filelenonly)
|
||||
{
|
||||
int i;
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: proto.h /main/3 1995/11/08 09:42:21 rswiston $ */
|
||||
void chksnb(void);
|
||||
|
||||
int m_actgetc(void);
|
||||
|
||||
void m_adjuststate(void);
|
||||
@@ -31,6 +33,8 @@ void m_attval(M_WCHAR *string);
|
||||
|
||||
LOGICAL m_attvonly(M_WCHAR *string);
|
||||
|
||||
void m_mberr1(const char *text, const char *arg);
|
||||
|
||||
int m_checkstart(M_ELEMENT val);
|
||||
|
||||
LOGICAL m_ckend(M_ELEMENT val, LOGICAL neednet);
|
||||
|
||||
@@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
#include "entity2.h"
|
||||
#include "sref.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
/* Actually read a character from an input stream */
|
||||
int m_actgetc(void)
|
||||
{
|
||||
|
||||
@@ -30,8 +30,6 @@
|
||||
#include "globdec.h"
|
||||
#include "proto.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
void assert_hometopic_exists(void)
|
||||
{
|
||||
static const char hometopic[] = "-HOMETOPIC";
|
||||
|
||||
@@ -154,8 +154,8 @@
|
||||
m_free(wc_2,"wide character string");
|
||||
}
|
||||
#else
|
||||
m_piaction("UNDEFINED MACHINE",
|
||||
"m-machine",
|
||||
m_piaction((M_WCHAR *) "UNDEFINED MACHINE",
|
||||
(M_WCHAR *) "m-machine",
|
||||
M_SDATA) ;
|
||||
#endif
|
||||
<\CODE>
|
||||
|
||||
@@ -26,8 +26,6 @@
|
||||
#include "userinc.h"
|
||||
#include "globdec.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
#if defined(_AIX) || defined(sun)
|
||||
/* get definition of getenv(3c) for getting of environment variables */
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
* Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
/* $XConsortium: proto.h /main/3 1995/11/08 10:24:42 rswiston $ */
|
||||
void chksnb(void);
|
||||
|
||||
int m_actgetc(void);
|
||||
|
||||
void m_adjuststate(void);
|
||||
@@ -172,6 +174,8 @@ int main(int argc, char **argv);
|
||||
|
||||
void *m_malloc(int size, char *msg);
|
||||
|
||||
void m_mberr1(const char *text, const char *arg);
|
||||
|
||||
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
||||
|
||||
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
||||
|
||||
@@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
#include "entity2.h"
|
||||
#include "sref.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
/* Actually read a character from an input stream */
|
||||
int m_actgetc(void)
|
||||
{
|
||||
|
||||
@@ -54,7 +54,7 @@ void OpenTag(LOGICAL hasAttributes,
|
||||
|
||||
void CloseTag(LOGICAL newlineOK);
|
||||
|
||||
void ImpliedlAttribute(char *name,
|
||||
void ImpliedAttribute(char *name,
|
||||
M_WCHAR *value);
|
||||
|
||||
void RequiredAttribute(char *name,
|
||||
|
||||
@@ -31,9 +31,6 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
|
||||
/* Interpret options from command line and specified files */
|
||||
#define OPTLEN 512 /* If OPTLEN changes, change fscanf call below */
|
||||
#define TAGDOTOPT "helptag.opt"
|
||||
|
||||
@@ -72,8 +72,8 @@ void main(int argc, char **argv)
|
||||
if (! m_curcon) {
|
||||
if (m_token != M_ENDFILE) {
|
||||
m_error("Parsing table error") ;
|
||||
sprintf(buffer, parserr, m_token, m_prevcon, m_scanval) ;
|
||||
m_errline(buffer) ;
|
||||
sprintf((char *) buffer, parserr, m_token, m_prevcon, m_scanval) ;
|
||||
m_errline((char *) buffer) ;
|
||||
}
|
||||
else {
|
||||
m_error("Unexpected end of document") ;
|
||||
@@ -92,17 +92,17 @@ void main(int argc, char **argv)
|
||||
m_aftereod = TRUE ;
|
||||
}
|
||||
if (m_scantrace) {
|
||||
sprintf(buffer, sopt,
|
||||
sprintf((char *) buffer, sopt,
|
||||
m_prevcon, m_token, m_curcon, m_scanval ? m_scanval : ' ',
|
||||
m_scanval, m_line[m_sysecnt], m_netlevel) ;
|
||||
m_trace(buffer) ;
|
||||
m_trace((char *) buffer) ;
|
||||
if (m_token == M_NAME) {
|
||||
sprintf(buffer, name, m_name) ;
|
||||
m_trace(buffer) ;
|
||||
sprintf((char *) buffer, name, m_name) ;
|
||||
m_trace((char *) buffer) ;
|
||||
}
|
||||
if (m_token == M_LITERAL) {
|
||||
sprintf(buffer, literal, m_literal) ;
|
||||
m_trace(buffer) ;
|
||||
sprintf((char *) buffer, literal, m_literal) ;
|
||||
m_trace((char *) buffer) ;
|
||||
}
|
||||
}
|
||||
#include "case.c"
|
||||
|
||||
@@ -172,6 +172,8 @@ void main(int argc, char **argv);
|
||||
|
||||
void *m_malloc(int size, char *msg);
|
||||
|
||||
void m_mberr1(const char *text, const char *arg);
|
||||
|
||||
void m_missingtagc(int c, M_HOLDTYPE dchar, LOGICAL start);
|
||||
|
||||
LOGICAL m_nextand(M_OPENFSA *thisfsa, M_ELEMENT label);
|
||||
|
||||
@@ -47,8 +47,6 @@ This product and information is proprietary of Tandem Computers Incorporated.
|
||||
#include "entity2.h"
|
||||
#include "sref.h"
|
||||
|
||||
void m_mberr1(char *text, const char *arg);
|
||||
|
||||
/* Actually read a character from an input stream */
|
||||
int m_actgetc(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user