No C99 initialisers, gcc 2.95.3 doesn't like it.
[oweals/tinc.git] / src / protocol.c
index c2d928987adadb9242b5ec9de8b6190c0635f6e4..6088740a906aab06893ce84fa4244ff5917b436c 100644 (file)
@@ -17,7 +17,7 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id: protocol.c,v 1.28.4.144 2003/07/29 10:50:15 guus Exp $
+    $Id: protocol.c,v 1.28.4.145 2003/07/30 11:50:45 guus Exp $
 */
 
 #include "system.h"
@@ -209,13 +209,12 @@ void exit_requests(void)
 
 bool seen_request(char *request)
 {
-       past_request_t p = {
-               .request = request,
-       };
-       past_request_t *new;
+       past_request_t *new, p = {0};
 
        cp();
 
+       p.request = request;
+
        if(avl_search(past_request_tree, &p)) {
                ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
                return true;