From d254331dae92413d7cf3f62948c96cb48b4ff090 Mon Sep 17 00:00:00 2001 From: dcp1990 Date: Sun, 19 Jun 2005 01:35:50 +0000 Subject: [PATCH] Roll back to 1.3 because stupid lint "changes for the better" fucked up the code...if it works, it works, I say. --- phoned/notify.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phoned/notify.c b/phoned/notify.c index bfbf638..22b6597 100644 --- a/phoned/notify.c +++ b/phoned/notify.c @@ -27,7 +27,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ -/* $Amigan: phoned/phoned/notify.c,v 1.4 2005/06/18 21:47:16 dcp1990 Exp $ */ +/* $Amigan: phoned/phoned/notify.c,v 1.5 2005/06/19 01:35:50 dcp1990 Exp $ */ #include #include #include @@ -97,8 +97,8 @@ int cid_notify(cid_t* c) bzero(&sin, sizeof(sin)); sin.sin_family = AF_INET; sin.sin_port = htons(3890); - if(setsockopt(s, SOL_SOCKET, SO_BROADCAST, &on, sizeof(on)) < 0) { - lprintf(error, "setsockopt: %s\n", strerror(errno)); + if(setsockopt(s, SOL_SOCKET, SO_BROADCAST, (char*)&on, sizeof(on)) < 0) { + lprintf(error, "setsockopt: %s...sure you're root?\n", strerror(errno)); return -1; } pthread_mutex_lock(&addrmx);