sqcwa (0.3-3.1) direct (non packaging) changes

Summary

 daemon.c     |    5 +++--
 sqcwa.init.d |   13 +++++++++++--
 url.c        |    3 ++-
 3 files changed, 16 insertions(+), 5 deletions(-)

    
download this patch

Patch contents

--- sqcwa-0.3.orig/daemon.c
+++ sqcwa-0.3/daemon.c
@@ -17,13 +17,14 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include "daemon.h"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <assert.h>
+#include <string.h>
+
+#include "daemon.h"
 
 void run_daemon_run (char * name, int uid, int gid) {
   daemon_fork();
--- sqcwa-0.3.orig/sqcwa.init.d
+++ sqcwa-0.3/sqcwa.init.d
@@ -1,4 +1,13 @@
 #! /bin/sh
+### BEGIN INIT INFO
+# Provides:          sqcwa
+# Required-Start:    $remote_fs $syslog
+# Required-Stop:     $remote_fs $syslog
+# Should-Start:      squid
+# Should-Stop:       squid
+# Default-Start:     2 3 4 5
+# Default-Stop:      0 1 6
+### END INIT INFO
 #
 # this init.d script was build from an example found at
 # /etc/init.d/skeleton in a Debian GNU system.
@@ -26,13 +35,13 @@
 	;;
   stop)
 	echo -n "Stopping $DESC: $NAME "
-	start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid \
+	start-stop-daemon --stop --oknodo --quiet --pidfile /var/run/$NAME.pid \
 		--exec $DAEMON
 	echo "."
 	;;
   restart|force-reload)
 	echo -n "Restarting $DESC: $NAME"
-	start-stop-daemon --stop --quiet --pidfile \
+	start-stop-daemon --stop --oknodo --quiet --pidfile \
 		/var/run/$NAME.pid --exec $DAEMON
 	sleep 1
 	start-stop-daemon --start --quiet --pidfile \
--- sqcwa-0.3.orig/url.c
+++ sqcwa-0.3/url.c
@@ -17,8 +17,9 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
 
-#include "url.h"
 #include <stdio.h>
+#include <string.h>
+#include "url.h"
 
 void url_filter (char * urlunf, char * urlfil) {