Description: internal function declarations
 Declare all internal functions used in other source files.
 A lot of functions were not declared explicitly to be int or void.
 .
 pixmap (2.6.6-1) UNRELEASED; urgency=medium
 .
   * New upstream version.
Author: Paul Slootman <paul@debian.org>

---
Last-Update: 2021-11-23

Index: pixmap-2.6.6/SelFile/Draw.c
===================================================================
--- pixmap-2.6.6.orig/SelFile/Draw.c
+++ pixmap-2.6.6/SelFile/Draw.c
@@ -59,6 +59,7 @@ static int SFcurrentListY;
 
 static XtIntervalId SFscrollTimerId;
 
+void
 SFinitFont()
 {
 	TextData	*data;
@@ -86,6 +87,7 @@ SFinitFont()
 	SFcharHeight = SFcharAscent + SFfont->max_bounds.descent;
 }
 
+void
 SFcreateGC()
 {
 	XGCValues	gcValues;
@@ -151,6 +153,7 @@ SFcreateGC()
 	);
 }
 
+void
 SFclearList(n, doScroll)
 	int	n;
 	int	doScroll;
@@ -193,7 +196,7 @@ SFclearList(n, doScroll)
 	}
 }
 
-static
+static void
 SFdeleteEntry(dir, entry)
 	SFDir	*dir;
 	SFEntry	*entry;
@@ -244,7 +247,7 @@ SFdeleteEntry(dir, entry)
 	);
 }
 
-static
+static void
 SFwriteStatChar(name, last, statBuf)
 	char		*name;
 	int		last;
@@ -320,7 +323,7 @@ SFstatAndCheck(dir, entry)
 	return 0;
 }
 
-static
+static void
 SFdrawStrings(w, dir, from, to)
 	register Window	w;
 	register SFDir	*dir;
@@ -397,6 +400,7 @@ SFdrawStrings(w, dir, from, to)
 	}
 }
 
+void
 SFdrawList(n, doScroll)
 	int	n;
 	int	doScroll;
@@ -422,6 +426,7 @@ SFdrawList(n, doScroll)
 	}
 }
 
+void
 SFdrawLists(doScroll)
 	int	doScroll;
 {
@@ -432,7 +437,7 @@ SFdrawLists(doScroll)
 	}
 }
 
-static
+static void
 SFinvertEntry(n)
 	register int	n;
 {
Index: pixmap-2.6.6/SelFile/Path.c
===================================================================
--- pixmap-2.6.6.orig/SelFile/Path.c
+++ pixmap-2.6.6/SelFile/Path.c
@@ -83,7 +83,7 @@ SFchdir(path)
 	return result;
 }
 
-static
+static void
 SFfree(i)
 	int	i;
 {
@@ -106,7 +106,7 @@ SFfree(i)
 	dir->dir = NULL;
 }
 
-static
+static void
 SFstrdup(s1, s2)
 	char	**s1;
 	char	*s2;
@@ -114,7 +114,7 @@ SFstrdup(s1, s2)
 	*s1 = strcpy(XtMalloc((unsigned) (strlen(s2) + 1)), s2);
 }
 
-static
+static void
 SFunreadableDir(dir)
 	SFDir	*dir;
 {
@@ -129,7 +129,7 @@ SFunreadableDir(dir)
 }
 
 #ifdef SEL_FILE_IGNORE_CASE
-static
+static int
 SFstrncmp(p, q, n)
 	register char	*p, *q;
 	register int	n;
@@ -173,7 +173,7 @@ SFstrncmp(p, q, n)
 }
 #endif /* def SEL_FILE_IGNORE_CASE */
 
-static
+static void
 SFreplaceText(dir, str)
 	SFDir	*dir;
 	char	*str;
@@ -357,7 +357,7 @@ SFfindFile(dir, str)
 	return 0;
 }
 
-static
+static void
 SFunselect()
 {
 	SFDir	*dir;
@@ -377,7 +377,7 @@ SFcompareLogins(p, q)
 	return strcmp(p->name, q->name);
 }
 
-static
+static void
 SFgetHomeDirs()
 {
 	struct passwd	*pw;
@@ -484,6 +484,7 @@ SFfindHomeDir(begin, end)
 	return 0;
 }
 
+void
 SFupdatePath()
 {
 	static int	alloc;
@@ -673,6 +674,7 @@ SFupdatePath()
 	}
 }
 
+void
 SFsetText(path)
 	char	*path;
 {
Index: pixmap-2.6.6/SelFile/SFinternal.h
===================================================================
--- pixmap-2.6.6.orig/SelFile/SFinternal.h
+++ pixmap-2.6.6/SelFile/SFinternal.h
@@ -143,3 +143,13 @@ extern char SFstatChar();
 extern XtIntervalId SFdirModTimerId;
 
 extern int (*SFfunc)();
+
+extern void SFinitFont();
+extern void SFcreateGC();
+extern void SFdrawList(int n, int doScroll);
+extern void SFdrawLists(int doScroll);
+extern int SFchdir(char *path);
+extern void SFupdatePath();
+extern void SFsetText(char *path);
+extern void SFtextChanged();
+extern int SFgetDir(SFDir *dir);
Index: pixmap-2.6.6/SelFile/SelFile.c
===================================================================
--- pixmap-2.6.6.orig/SelFile/SelFile.c
+++ pixmap-2.6.6/SelFile/SelFile.c
@@ -150,7 +150,7 @@ SFexposeList(w, n, event, cont)
 		return;
 	}
 
-	SFdrawList(n, SF_DO_NOT_SCROLL);
+	SFdrawList((int)n, SF_DO_NOT_SCROLL);
 }
 
 /* ARGSUSED */
@@ -600,6 +600,7 @@ SFopenFile(name, mode, prompt, failed)
     return fp;
 }
 
+void
 SFtextChanged()
 {
 
@@ -629,7 +630,7 @@ SFgetText()
 		SFtextBuffer);
 }
 
-static
+static int
 SFprepareToReturn()
 {
 	SFstatus = SEL_FILE_NULL;
