1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/dns/mdnsd/files/patch-1035.c
Boris Samorodov 7cf3d9082d - gcc -Wall cleanup patches, contributed by Pietro Cerutti; [1]
- divide proposed files/patch-aa into several files.

PR:		103771  [1]
Submitted by:	Dan Pelleg <daniel+mdnsd at pelleg.org> (maintainer)  [1]
2006-09-28 21:19:50 +00:00

19 lines
643 B
C

diff -ruN 1035.c.orig 1035.c
--- 1035.c.orig Tue Feb 18 08:54:33 2003
+++ 1035.c Mon Sep 25 22:11:14 2006
@@ -1,4 +1,5 @@
#include "1035.h"
+#include <stdio.h>
#include <string.h>
unsigned short int net2short(unsigned char **bufp)
@@ -241,7 +242,7 @@
if(packet == 0 || m == 0) return;
// keep all our mem in one (aligned) block for easy freeing
- #define my(x,y) while(m->_len&7) m->_len++; (void*)x = (void*)(m->_packet + m->_len); m->_len += y;
+ #define my(x,y) x = (void *) x; while(m->_len&7) m->_len++; x = (void*)(m->_packet + m->_len); m->_len += y;
// header stuff bit crap
m->_buf = buf = packet;