summaryrefslogtreecommitdiff
path: root/src/Converters.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:16 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:28:16 +0000
commitf81d7ef72c9b4f13e33efa812bed9446657ed003 (patch)
tree183442a515d232d4d88cb56d6de651c215731c3f /src/Converters.c
parentbdc0667ef29e24b1a2188b11546d843a7d3e5ef6 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_902xf86-4_3_99_901xf86-4_3_99_16
Diffstat (limited to 'src/Converters.c')
-rw-r--r--src/Converters.c17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/Converters.c b/src/Converters.c
index 95a88e0..801279a 100644
--- a/src/Converters.c
+++ b/src/Converters.c
@@ -32,7 +32,7 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH
THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
-/* $XFree86: xc/lib/Xt/Converters.c,v 3.13 2002/06/03 20:59:19 dawes Exp $ */
+/* $XFree86: xc/lib/Xt/Converters.c,v 3.15 2003/05/27 22:26:42 tsi Exp $ */
/*
@@ -171,17 +171,11 @@ void _XtConvertInitialize()
return True; \
}
-#if NeedFunctionPrototypes
void XtDisplayStringConversionWarning(
Display* dpy,
_Xconst char* from,
_Xconst char* toType
)
-#else
-void XtDisplayStringConversionWarning(dpy, from, toType)
- Display* dpy;
- String from, toType;
-#endif
{
#ifndef NO_MIT_HACKS
/* Allow suppression of conversion warnings. %%% Not specified. */
@@ -238,15 +232,10 @@ void XtDisplayStringConversionWarning(dpy, from, toType)
UNLOCK_APP(app);
}
-#if NeedFunctionPrototypes
void XtStringConversionWarning(
_Xconst char* from,
_Xconst char* toType
)
-#else
-void XtStringConversionWarning(from, toType)
- String from, toType;
-#endif
{
String params[2];
Cardinal num_params = 2;
@@ -1645,7 +1634,7 @@ Boolean XtCvtStringToCommandArgArray(dpy, args, num_args, fromVal, toVal,
XtPointer *closure_ret;
{
String *strarray, *ptr;
- char *src, *src_str;
+ char *src;
char *dst, *dst_str;
char *start;
int tokens, len;
@@ -1656,7 +1645,7 @@ Boolean XtCvtStringToCommandArgArray(dpy, args, num_args, fromVal, toVal,
"String to CommandArgArray conversion needs no extra arguments",
(String *)NULL, (Cardinal *)NULL);
- src = src_str = fromVal->addr;
+ src = fromVal->addr;
dst = dst_str = __XtMalloc((unsigned) strlen(src) + 1);
tokens = 0;