dthelp: fix implicit-function-declaration warnings (mostly)

This commit is contained in:
Jon Trulson
2021-11-16 16:24:58 -07:00
parent cc422524f7
commit 4f16e12ed8
8 changed files with 37 additions and 11 deletions

View File

@@ -28,10 +28,13 @@
#include "userinc.h"
#include "globdec.h"
#include "proto.h"
#include "LocaleXlate.h"
#include "XlationSvc.h"
void m_mberr1(char *text, const char *arg);
void assert_hometopic_exists(void)
{
static const char hometopic[] = "-HOMETOPIC";

View File

@@ -26,6 +26,8 @@
#include "userinc.h"
#include "globdec.h"
void m_mberr1(char *text, const char *arg);
#if defined(hpux) || defined(_AIX) || defined(sun)
/* get definition of getenv(3c) for getting of environment variables */
#include <stdlib.h>

View File

@@ -121,6 +121,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
typedef wchar_t M_WCHAR;
@@ -146,9 +147,9 @@ if (argc < 3)
{ /* Either one argument or none; not more */
if (argc == 2)
{
if (!stricmp(argv[1], "b")) both = TRUE;
else if (!stricmp(argv[1], "s")) spec = TRUE;
else if (!stricmp(argv[1], "c")) coll = TRUE;
if (!strcasecmp(argv[1], "b")) both = TRUE;
else if (!strcasecmp(argv[1], "s")) spec = TRUE;
else if (!strcasecmp(argv[1], "c")) coll = TRUE;
else error = TRUE;
}
else both = TRUE;