From cb3180cd2a89de7974881a98234e7ae3c190ce0a Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Sat, 1 Aug 2020 23:00:23 +0100 Subject: [PATCH] libcsa: resolve all missing-prototypes warnings --- cde/lib/csa/agent.c | 1 + cde/lib/csa/cmxdr.c | 3 +++ cde/lib/csa/debug.c | 2 ++ cde/lib/csa/lutil.c | 2 ++ cde/lib/csa/rescan.c | 1 + cde/lib/csa/table.c | 1 + cde/lib/csa/xtclient.c | 3 ++- 7 files changed, 12 insertions(+), 1 deletion(-) diff --git a/cde/lib/csa/agent.c b/cde/lib/csa/agent.c index 7f6210efe..4b110bae5 100644 --- a/cde/lib/csa/agent.c +++ b/cde/lib/csa/agent.c @@ -48,6 +48,7 @@ #include #include "agent.h" +#include "agent_p.h" #include "cmcb.h" #include "entry.h" #include "debug.h" diff --git a/cde/lib/csa/cmxdr.c b/cde/lib/csa/cmxdr.c index 5e6b01289..e8d13cced 100644 --- a/cde/lib/csa/cmxdr.c +++ b/cde/lib/csa/cmxdr.c @@ -37,6 +37,9 @@ #include "csa.h" #include "cmxdr.h" +bool_t xdr_cms_attribute_value(XDR *xdrs, cms_attribute_value *objp); +bool_t xdr_time_t(XDR *xdrs, time_t *objp); + /* Functions generated by rtable4.x */ /* * time_t is a typedef which is system dependent diff --git a/cde/lib/csa/debug.c b/cde/lib/csa/debug.c index 362a6fbac..fb2b0d3f5 100644 --- a/cde/lib/csa/debug.c +++ b/cde/lib/csa/debug.c @@ -43,6 +43,8 @@ #include +#include + static int inited = 0; extern void diff --git a/cde/lib/csa/lutil.c b/cde/lib/csa/lutil.c index 0ec4a31eb..2f8f124f0 100644 --- a/cde/lib/csa/lutil.c +++ b/cde/lib/csa/lutil.c @@ -50,6 +50,8 @@ #define SVR4 #endif +#include "lutil.h" + #if !defined(__linux__) extern char * strdup(const char *); #endif diff --git a/cde/lib/csa/rescan.c b/cde/lib/csa/rescan.c index 623d0cb4b..e5464aad1 100644 --- a/cde/lib/csa/rescan.c +++ b/cde/lib/csa/rescan.c @@ -60,6 +60,7 @@ #define FRISYMBOL "FR" #define SATSYMBOL "SA" +int _DtCm_yylex(void); static int scanbuf(char **inbuf, char *, int *); /* The rule that needs to be parsed is passed to yylex() through this var */ diff --git a/cde/lib/csa/table.c b/cde/lib/csa/table.c index 454d893af..c797bd7c8 100644 --- a/cde/lib/csa/table.c +++ b/cde/lib/csa/table.c @@ -53,6 +53,7 @@ #include "nametbl.h" #include "match.h" #include "iso8601.h" +#include "table.h" extern u_long _DtCm_transient; diff --git a/cde/lib/csa/xtclient.c b/cde/lib/csa/xtclient.c index 6f7c15922..5fafa247f 100644 --- a/cde/lib/csa/xtclient.c +++ b/cde/lib/csa/xtclient.c @@ -33,6 +33,7 @@ #include #include #include "debug.h" +#include "xtclient.h" typedef struct _appctlist { XtAppContext appct; @@ -55,7 +56,7 @@ static boolean_t new_appct(XtAppContext apptct); * register callback for all file descriptors that's set * (since we don't know which one is ours). */ -extern void +void _DtCm_register_xtcallback(XtAppContext appct) { XtInputId id;