fix some compile warnings
Olaf Hering (olh@suse.de)
Thu, 4 Jul 2002 22:56:27 +0200
Hi,
this patch fixes some compile warnings in 1.8.11.
--- asimagelib/mystyle.c
+++ asimagelib/mystyle.c 2002/04/23 13:53:43
@@ -950,6 +950,7 @@
{
XColor color;
double offset;
+ offset = 0.0;
if (!error)
{
char *name;
--- lib/asproperty.c
+++ lib/asproperty.c 2002/04/23 13:53:43
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <X11/X.h>
#include <X11/Xatom.h>
--- lib/safemalloc.c
+++ lib/safemalloc.c 2002/04/23 13:53:43
@@ -42,7 +42,7 @@
if (ptr == (char *) 0)
{
- fprintf (stderr, "malloc of %d bytes failed. Exiting\n", length);
+ fprintf (stderr, "malloc of %d bytes failed. Exiting\n", (int)length);
exit (1);
}
return ptr;
--- lib/wild.c
+++ lib/wild.c 2002/04/23 13:53:43
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <string.h>
#include "../configure.h"
#include "../include/aftersteplib.h"
--- src/Wharf/Wharf.c
+++ src/Wharf/Wharf.c 2002/04/23 13:53:43
@@ -3271,6 +3271,6 @@
fprintf (stderr, "%s: X Error\n"
"%*s Request %d, Error %d %d, Type: %d\n",
MyName,
- strlen (MyName), "", error->request_code, error->error_code, error->minor_code, error->type);
+ (int)strlen (MyName), "", error->request_code, error->error_code, error->minor_code, error->type);
return 0;
}
--- src/WinList/List.c
+++ src/WinList/List.c 2002/04/23 13:53:43
@@ -23,6 +23,7 @@
#include "../../configure.h"
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include "List.h"
#include "../../include/aftersteplib.h"
#include "../../include/module.h"
--- src/afterstep/resize.c
+++ src/afterstep/resize.c 2002/04/23 13:53:43
@@ -37,6 +37,7 @@
#include "../../configure.h"
#include <stdio.h>
+#include <string.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
--
$ man clone
BUGS
Main feature not yet implemented...
_______________________________________________
The AfterStep Window Manager for X User's Mailing List
http://mail.afterstep.org/mailman/listinfo/as-users