summaryrefslogtreecommitdiffstats
path: root/development/icon/patches/implicit-defs.patch
blob: 9e015c7ad71ff234cc22b4e777402c3555c9571f (plain)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
commit 8cb4887b886ad0c9caf0be595e236d2a74a41a8d
Author: Gregg Townsend <gmt@cs.arizona.edu>
Date:   Mon Aug 28 09:10:00 2017 -0700

    Fix compilation warnings in xpm code (thx Sean Jensen).

diff --git a/src/xpm/create.c b/src/xpm/create.c
--- a/src/xpm/create.c
+++ b/src/xpm/create.c
@@ -344,6 +344,7 @@
 
 #endif
 
+int
 xpmCreateImage(display, attrib, image_return, shapeimage_return, attributes)
     Display *display;
     xpmInternAttrib *attrib;
diff --git a/src/xpm/data.c b/src/xpm/data.c
--- a/src/xpm/data.c
+++ b/src/xpm/data.c
@@ -110,6 +110,7 @@
 /*
  * skip to the end of the current string and the beginning of the next one
  */
+void
 xpmNextString(mdata)
     xpmData *mdata;
 {
@@ -277,6 +278,7 @@
 /*
  * get the current comment line
  */
+void
 xpmGetCmt(mdata, cmt)
     xpmData *mdata;
     char **cmt;
@@ -403,6 +405,7 @@
 /*
  * close the file related to the xpmData if any
  */
+void
 XpmDataClose(mdata)
     xpmData *mdata;
 {
diff --git a/src/xpm/misc.c b/src/xpm/misc.c
--- a/src/xpm/misc.c
+++ b/src/xpm/misc.c
@@ -14,6 +14,7 @@
  * Free the computed color table
  */
 
+void
 xpmFreeColorTable(colorTable, ncolors)
     char ***colorTable;
     int ncolors;
@@ -39,6 +40,7 @@
  * which ones must be freed later on.
  */
 
+void
 xpmInitInternAttrib(attrib)
     xpmInternAttrib *attrib;
 {
@@ -55,6 +57,7 @@
  * Free the xpmInternAttrib pointers which have been allocated
  */
 
+void
 xpmFreeInternAttrib(attrib)
     xpmInternAttrib *attrib;
 {
@@ -80,6 +83,7 @@
 /*
  * Free array of extensions
  */
+void
 XpmFreeExtensions(extensions, nextensions)
     XpmExtension *extensions;
     int          nextensions;
@@ -108,6 +112,7 @@
  * Return the XpmAttributes structure size
  */
 
+int
 XpmAttributesSize()
 {
     return sizeof(XpmAttributes);
@@ -119,6 +124,7 @@
  * but the structure itself
  */
 
+void
 XpmFreeAttributes(attributes)
     XpmAttributes *attributes;
 {
@@ -167,6 +173,7 @@
  * the xpmInternAttrib structure.
  */
 
+void
 xpmSetAttributes(attrib, attributes)
     xpmInternAttrib *attrib;
     XpmAttributes *attributes;
diff --git a/src/xpm/xpm.h b/src/xpm/xpm.h
--- a/src/xpm/xpm.h
+++ b/src/xpm/xpm.h
@@ -191,8 +191,8 @@
 				      XpmAttributes * attributes));
 
     FUNC(XpmAttributesSize, int, ());
-    FUNC(XpmFreeAttributes, int, (XpmAttributes * attributes));
-    FUNC(XpmFreeExtensions, int, (XpmExtension * extensions, int nextensions));
+    FUNC(XpmFreeAttributes, void, (XpmAttributes * attributes));
+    FUNC(XpmFreeExtensions, void, (XpmExtension * extensions, int nextensions));
 
 #ifdef __cplusplus
 }					/* for C++ V2.0 */
diff --git a/src/xpm/xpmP.h b/src/xpm/xpmP.h
--- a/src/xpm/xpmP.h
+++ b/src/xpm/xpmP.h
@@ -159,13 +159,13 @@
 			 XpmAttributes * attributes,
 			 xpmInternAttrib * attrib));
 
-FUNC(xpmFreeColorTable, int, (char ***colorTable, int ncolors));
+FUNC(xpmFreeColorTable, void, (char ***colorTable, int ncolors));
 
-FUNC(xpmInitInternAttrib, int, (xpmInternAttrib * xmpdata));
+FUNC(xpmInitInternAttrib, void, (xpmInternAttrib * xmpdata));
 
-FUNC(xpmFreeInternAttrib, int, (xpmInternAttrib * xmpdata));
+FUNC(xpmFreeInternAttrib, void, (xpmInternAttrib * xmpdata));
 
-FUNC(xpmSetAttributes, int, (xpmInternAttrib * attrib,
+FUNC(xpmSetAttributes, void, (xpmInternAttrib * attrib,
 			     XpmAttributes * attributes));
 
 FUNC(xpmGetAttributes, int, (XpmAttributes * attributes,
@@ -173,18 +173,20 @@
 
 /* I/O utility */
 
-FUNC(xpmNextString, int, (xpmData * mdata));
+FUNC(atoui, unsigned int, (char *p, unsigned int l, unsigned int *ui_return));
+FUNC(xpmGetString, int, (xpmData *mdata, char **sptr, unsigned int *l));
+FUNC(xpmNextString, void, (xpmData * mdata));
 FUNC(xpmNextUI, int, (xpmData * mdata, unsigned int *ui_return));
 
 #define xpmGetC(mdata) \
 	(mdata->type ? (getc(mdata->stream.file)) : (*mdata->cptr++))
 
 FUNC(xpmNextWord, unsigned int, (xpmData * mdata, char *buf));
-FUNC(xpmGetCmt, int, (xpmData * mdata, char **cmt));
+FUNC(xpmGetCmt, void, (xpmData * mdata, char **cmt));
 FUNC(xpmReadFile, int, (char *filename, xpmData * mdata));
 FUNC(xpmWriteFile, int, (char *filename, xpmData * mdata));
 FUNC(xpmOpenArray, void, (char **data, xpmData * mdata));
-FUNC(XpmDataClose, int, (xpmData * mdata));
+FUNC(XpmDataClose, void, (xpmData * mdata));
 
 /* RGB utility */