[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r12314: fix compile errors on r12310 (thanks karsten) (tor/trunk/src/or)



Author: arma
Date: 2007-11-01 09:40:29 -0400 (Thu, 01 Nov 2007)
New Revision: 12314

Modified:
   tor/trunk/src/or/directory.c
Log:
fix compile errors on r12310 (thanks karsten)


Modified: tor/trunk/src/or/directory.c
===================================================================
--- tor/trunk/src/or/directory.c	2007-11-01 12:51:47 UTC (rev 12313)
+++ tor/trunk/src/or/directory.c	2007-11-01 13:40:29 UTC (rev 12314)
@@ -1635,7 +1635,7 @@
                                                "X-Descriptor-Not-New: ");
           int rejected = 0;
           if (rejected_hdr) {
-            if (!strcmp(rejected, "Yes")) {
+            if (!strcmp(rejected_hdr, "Yes")) {
               /* XXXX020 use this information; be sure to upload next one
                * sooner. */
               rejected = 1;
@@ -1909,7 +1909,7 @@
 static void
 write_http_response_header_impl(dir_connection_t *conn, ssize_t length,
                            const char *type, const char *encoding,
-                           const cahr *extra_headers,
+                           const char *extra_headers,
                            int cache_lifetime)
 {
   char date[RFC1123_TIME_LEN+1];
@@ -2704,8 +2704,8 @@
         write_http_status_line(conn, 400, msg);
         break;
       case 0: /* accepted but discarded */
-        write_http_response_header(conn, -1, NULL, NULL,
-                                   "X-Descriptor-Not-New: Yes\r\n", -1);
+        write_http_response_header_impl(conn, -1, NULL, NULL,
+                                        "X-Descriptor-Not-New: Yes\r\n", -1);
         break;
       case 2: /* accepted */
         write_http_status_line(conn, 200, msg);