1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
Author: Alexander <sanek23994@gmail.com>
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=758560
Description: Fixes needed to compile with clang.
Forwarded: no
Last-Updated: 2014-09-13
Index: libsx-2.08/src/popups.c
===================================================================
--- libsx-2.08.orig/src/popups.c
+++ libsx-2.08/src/popups.c
@@ -2,7 +2,7 @@
* They use the routines in Dialog.c to do most of the work.
*
* This code is under the GNU Copyleft.
- *
+ *
* Dominic Giampaolo
* dbg@sgi.com
*/
@@ -62,7 +62,7 @@ char *GetString(char *blurb, char *defau
return string;
}
-void GetTextCancel(Widget ww, void* data)
+static void GetTextCancel(Widget ww, void* data)
{
char **string = (char **) data;
*string = NULL;
@@ -71,7 +71,7 @@ void GetTextCancel(Widget ww, void* data
w1 = None;
}
-void GetTextOkay(Widget ww, void* data)
+static void GetTextOkay(Widget ww, void* data)
{
char *ptr = NULL;
char **string = (char **) data;
@@ -86,10 +86,9 @@ void GetTextOkay(Widget ww, void* data)
CloseWindow();
}
+
char *GetText(char *blurb, char *default_string, int width, int height)
{
-Widget wid_gettext[6];
-char *string;
int i;
MakeWindow("GetText",SAME_DISPLAY, EXCLUSIVE_WINDOW);
|