Description: Fix implicit function declarations
 ascd (0.13.2-9) UNRELEASED; urgency=medium
 .
   * Really fixed gcc-14 build issues (closes: #1074819)
Author: Fredrik Hallenberg <hallon@debian.org>
Bug-Debian: https://bugs.debian.org/1074819

---
The information above should follow the Patch Tagging Guidelines, please
checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>)
Bug: <upstream-bugtracker-url>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: (no|not-needed|<patch-forwarded-url>)
Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>)
Reviewed-By: <name and email of someone who approved/reviewed the patch>
Last-Update: 2024-11-25

Index: ascd-0.13.2/ascd/ext.h
===================================================================
--- ascd-0.13.2.orig/ascd/ext.h
+++ ascd-0.13.2/ascd/ext.h
@@ -25,8 +25,8 @@
 #include <WINGs.h>
 #endif
 
-extern open();
-extern time();
+#include <time.h>
+#include <ctype.h>
 
 /* added this for this lib: */
 extern unsigned int info_modified;
Index: ascd-0.13.2/ascd/ascd.c
===================================================================
--- ascd-0.13.2.orig/ascd/ascd.c
+++ ascd-0.13.2/ascd/ascd.c
@@ -63,10 +63,12 @@ XpmIcon iconXPM;
 
 /* External functions */
 
-extern time();
-extern open();
-extern cd_control(int);
-extern cd_control_version();
+extern void cd_control(int);
+extern char *cd_control_version();
+extern void load_rc_file(int);
+extern void command_line_parse(int, char **);
+extern void fak_event_handle(int, XEvent);
+extern void cd_event_handle(int, XEvent);
 
 /* the various switches: */
 
Index: ascd-0.13.2/ascd/faktory.c
===================================================================
--- ascd-0.13.2.orig/ascd/faktory.c
+++ ascd-0.13.2/ascd/faktory.c
@@ -36,6 +36,9 @@
  								   
 #include "ext.h"
 
+extern void newtext(char *);
+extern void cd_control(int);
+
 #define MAX_LINE_NAME 16
 
 void tes_sncpy(char *out, char *in, int n)
Index: ascd-0.13.2/ascd/handlers.c
===================================================================
--- ascd-0.13.2.orig/ascd/handlers.c
+++ ascd-0.13.2/ascd/handlers.c
@@ -37,6 +37,12 @@
 #include "ext.h"
 #include "faktory_prot.h"
 
+extern void newtext(char *);
+extern void cd_control(int);
+extern void save_rc_file();
+extern void load_rc_file(int);
+extern void quick_reference(int);
+
 void theme_select_init()
 {
     char txt[256];
@@ -209,7 +215,7 @@ void fak_event_handle(int event, XEvent
 	break;
     case FAK_LOAD:
 	newtext("Loading");
-	load_rc_file();
+	load_rc_file(FALSE);
 	break;
     case FAK_QREF:
 	quick_reference(thdata[but_current].arg);
Index: ascd-0.13.2/ascd/misc.c
===================================================================
--- ascd-0.13.2.orig/ascd/misc.c
+++ ascd-0.13.2/ascd/misc.c
@@ -36,9 +36,9 @@
 
 #include "ext.h"
 
-extern tes_xgets();
-extern fak_parse_line();
-extern cd_control_version();
+extern char *tes_xgets(char *, int, FILE *);
+extern int fak_parse_line(char *, char *, char *);
+extern char *cd_control_version();
 
 /* The rc file functions, taken from xfascd*/
 
