aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/afterstep
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2020-05-04 19:45:07 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2020-05-04 19:45:07 +0000
commit8e2fb9f31d451449086f63005a4608747c0025e6 (patch)
treec8f4967b39cbb54db8e18721970221c1db6bab4f /x11-wm/afterstep
parent279c4da8ef523fe2de2dd733c58df3497cf86cf0 (diff)
downloadports-8e2fb9f31d451449086f63005a4608747c0025e6.tar.gz
ports-8e2fb9f31d451449086f63005a4608747c0025e6.zip
- fix warnings
Notes
Notes: svn path=/head/; revision=533977
Diffstat (limited to 'x11-wm/afterstep')
-rw-r--r--x11-wm/afterstep/files/patch-Audio.c11
-rw-r--r--x11-wm/afterstep/files/patch-Auto.c11
-rw-r--r--x11-wm/afterstep/files/patch-Pager.c20
-rw-r--r--x11-wm/afterstep/files/patch-ReadPacket.c11
-rw-r--r--x11-wm/afterstep/files/patch-SendInfo.c9
-rw-r--r--x11-wm/afterstep/files/patch-SendText.c10
-rw-r--r--x11-wm/afterstep/files/patch-icons.c11
7 files changed, 82 insertions, 1 deletions
diff --git a/x11-wm/afterstep/files/patch-Audio.c b/x11-wm/afterstep/files/patch-Audio.c
new file mode 100644
index 000000000000..f86765604521
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-Audio.c
@@ -0,0 +1,11 @@
+--- modules/Audio/Audio.c.orig 1997-04-19 20:36:39 UTC
++++ modules/Audio/Audio.c
+@@ -477,7 +477,7 @@ int audio_play(short sound)
+
+ if (sound_table[sound])
+ {
+- memset(buf,NULL,BUFSIZE);
++ memset(buf,0,BUFSIZE);
+
+ /*
+ * Don't use audio_play_dir if it's NULL or if the sound file
diff --git a/x11-wm/afterstep/files/patch-Auto.c b/x11-wm/afterstep/files/patch-Auto.c
new file mode 100644
index 000000000000..1ef68c9ca52c
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-Auto.c
@@ -0,0 +1,11 @@
+--- modules/Auto/Auto.c.orig 1996-08-21 14:23:30 UTC
++++ modules/Auto/Auto.c
+@@ -59,7 +59,7 @@ void DeadPipe(int nonsense);
+ * main - start of module
+ *
+ ***********************************************************************/
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ FILE *file;
+ char mask_mesg[80];
diff --git a/x11-wm/afterstep/files/patch-Pager.c b/x11-wm/afterstep/files/patch-Pager.c
new file mode 100644
index 000000000000..fac039c10882
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-Pager.c
@@ -0,0 +1,20 @@
+--- modules/Pager/Pager.c.orig 1996-08-21 14:23:33 UTC
++++ modules/Pager/Pager.c
+@@ -85,7 +85,7 @@ int StickyIcons = 0;
+ * main - start of module
+ *
+ ***********************************************************************/
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+ char *temp, *s, *cptr;
+ char *display_name = NULL;
+@@ -751,7 +751,7 @@ int My_XNextEvent(Display *dpy, XEvent *event)
+
+ if(FD_ISSET(fd[1], &in_fdset))
+ {
+- if(count = ReadASPacket(fd[1],header,&body) > 0)
++ if((count = ReadASPacket(fd[1],header,&body)) > 0)
+ {
+ process_message(header[1],body);
+ free(body);
diff --git a/x11-wm/afterstep/files/patch-ReadPacket.c b/x11-wm/afterstep/files/patch-ReadPacket.c
new file mode 100644
index 000000000000..f00f02659acd
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-ReadPacket.c
@@ -0,0 +1,11 @@
+--- lib/ReadPacket.c.orig 1996-08-21 14:23:34 UTC
++++ lib/ReadPacket.c
+@@ -9,7 +9,7 @@
+ * unsigned long header[3];
+ * unsigned long *body;
+ * int fd[2];
+- * void DeadPipe(int nonsense); /* Called if the pipe is no longer open
++ * void DeadPipe(int nonsense); // Called if the pipe is no longer open
+ *
+ * ReadASPacket(fd[1],header, &body);
+ *
diff --git a/x11-wm/afterstep/files/patch-SendInfo.c b/x11-wm/afterstep/files/patch-SendInfo.c
new file mode 100644
index 000000000000..87d8c684c9ad
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-SendInfo.c
@@ -0,0 +1,9 @@
+--- lib/SendInfo.c.orig 1996-08-21 14:23:34 UTC
++++ lib/SendInfo.c
+@@ -1,5 +1,6 @@
+ #include <stdio.h>
+ #include <ctype.h>
++#include <string.h>
+
+ /***********************************************************************
+ *
diff --git a/x11-wm/afterstep/files/patch-SendText.c b/x11-wm/afterstep/files/patch-SendText.c
new file mode 100644
index 000000000000..2bf8a9afc8ef
--- /dev/null
+++ b/x11-wm/afterstep/files/patch-SendText.c
@@ -0,0 +1,10 @@
+--- lib/SendText.c.orig 1996-08-21 14:23:34 UTC
++++ lib/SendText.c
+@@ -1,5 +1,7 @@
+ #include <stdio.h>
+ #include <ctype.h>
++#include <string.h>
++
+ /************************************************************************
+ *
+ * Sends arbitrary text to afterstep
diff --git a/x11-wm/afterstep/files/patch-icons.c b/x11-wm/afterstep/files/patch-icons.c
index bf1f15a3b422..c7e22a0cf223 100644
--- a/x11-wm/afterstep/files/patch-icons.c
+++ b/x11-wm/afterstep/files/patch-icons.c
@@ -1,6 +1,15 @@
--- afterstep/icons.c.orig 1997-03-21 00:09:21 UTC
+++ afterstep/icons.c
-@@ -779,10 +779,12 @@ void Iconify(ASWindow *tmp_win, int def_
+@@ -10,7 +10,7 @@
+ *
+ * Modifications: Copyright 1995 Bo Yang. No further restrictions,
+ * as long as this copyright notice is preserved.
+- *
++ */
+ /***********************************************************************
+ *
+ * afterstep icon code
+@@ -779,10 +779,12 @@ void Iconify(ASWindow *tmp_win, int def_x, int def_y)
}
}