gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r3167 - GNUnet/src/server


From: grothoff
Subject: [GNUnet-SVN] r3167 - GNUnet/src/server
Date: Sat, 29 Jul 2006 16:56:39 -0700 (PDT)

Author: grothoff
Date: 2006-07-29 16:56:38 -0700 (Sat, 29 Jul 2006)
New Revision: 3167

Modified:
   GNUnet/src/server/gnunet-transport-check.c
Log:
gnunet-peer-info compiles

Modified: GNUnet/src/server/gnunet-transport-check.c
===================================================================
--- GNUnet/src/server/gnunet-transport-check.c  2006-07-29 23:55:30 UTC (rev 
3166)
+++ GNUnet/src/server/gnunet-transport-check.c  2006-07-29 23:56:38 UTC (rev 
3167)
@@ -1,6 +1,6 @@
 /*
      This file is part of GNUnet.
-     (C) 2001, 2002, 2003, 2004 Christian Grothoff (and other contributing 
authors)
+     (C) 2001, 2002, 2003, 2004, 2006 Christian Grothoff (and other 
contributing authors)
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
@@ -73,10 +73,10 @@
 }
 
 static int noiseHandler(const PeerIdentity *peer,
-                       const P2P_MESSAGE_HEADER * msg,
+                       const MESSAGE_HEADER * msg,
                        TSession * s) {
   if ( (ntohs(msg->size) ==
-       sizeof(P2P_MESSAGE_HEADER) + expectedSize) &&
+       sizeof(MESSAGE_HEADER) + expectedSize) &&
        (0 == memcmp(expectedValue,
                    &msg[1],
                    expectedSize)) )
@@ -95,7 +95,7 @@
   unsigned int repeat;
   cron_t start;
   cron_t end;
-  CS_MESSAGE_HEADER * noise;
+  MESSAGE_HEADER * noise;
 
   if (tapi == NULL)
     errexit("Could not initialize transport!\n");
@@ -132,9 +132,9 @@
   }
   sem = SEMAPHORE_NEW(0);
   cronTime(&start);
-  noise = MALLOC(expectedSize + sizeof(P2P_MESSAGE_HEADER));
+  noise = MALLOC(expectedSize + sizeof(MESSAGE_HEADER));
   noise->type = htons(P2P_PROTO_noise);
-  noise->size = htons(expectedSize + sizeof(P2P_MESSAGE_HEADER));
+  noise->size = htons(expectedSize + sizeof(MESSAGE_HEADER));
   memcpy(&noise[1],
         expectedValue,
         expectedSize);
@@ -208,7 +208,7 @@
   TSession * tsession;
   P2P_hello_MESSAGE * helo;
   P2P_hello_MESSAGE * myHelo;
-  P2P_MESSAGE_HEADER * ping;
+  MESSAGE_HEADER * ping;
   char * msg;
   int len;
   PeerIdentity peer;
@@ -429,7 +429,7 @@
     case 'P':{
       unsigned int port;
       if (1 != sscanf(GNoptarg, "%ud", &port)) {
-       LOG(LOG_FAILURE,
+       GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
            "You must pass a number to the -P option.\n");
        return SYSERR;
       } else {
@@ -444,7 +444,7 @@
     case 'r':{
       unsigned int repeat;
       if (1 != sscanf(GNoptarg, "%ud", &repeat)) {
-       LOG(LOG_FAILURE,
+       GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
            _("You must pass a number to the `%s' option.\n"),
            "-r");
        return SYSERR;
@@ -458,7 +458,7 @@
     case 's':{
       unsigned int size;
       if (1 != sscanf(GNoptarg, "%ud", &size)) {
-       LOG(LOG_FAILURE,
+       GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
            _("You must pass a number to the `%s' option.\n"),
            "-s");
        return SYSERR;
@@ -475,7 +475,7 @@
     }
     case 'T':{
       if (1 != SSCANF(GNoptarg, "%llu", &timeout)) {
-       LOG(LOG_FAILURE,
+       GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
            _("You must pass a number to the `%s' option.\n"),
            "-T");
        return SYSERR;
@@ -505,7 +505,7 @@
     case 'X':{
       unsigned int repeat;
       if (1 != sscanf(GNoptarg, "%ud", &repeat)) {
-       LOG(LOG_FAILURE,
+       GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
            _("You must pass a number to the `%s' option.\n"),
            "-X");
        return SYSERR;
@@ -517,7 +517,7 @@
       break;
     }
     default:
-      LOG(LOG_FAILURE,
+      GE_LOG(ectx, GE_FATAL | GE_IMMEDIATE | GE_USER,
          _("Use --help to get a list of options.\n"));
       cont = SYSERR;
     } /* end of parsing commandline */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]