added two return statements comitted by Marius Tomaschewski
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 21 Nov 2007 23:42:27 +0000 (23:42 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 21 Nov 2007 23:42:27 +0000 (23:42 -0000)
src/charon/sa/connect_manager.c
src/pluto/connections.c

index d583e01..01ece74 100644 (file)
@@ -1240,7 +1240,8 @@ static job_requeue_t initiate_mediated(initiate_data_t *data)
        }
        else
        {
-               // this should (can?) not happen
+               /* this should (can?) not happen */
+               return JOB_REQUEUE_NONE;
        }
 }
 
index 8350c68..2f0778f 100644 (file)
@@ -955,6 +955,7 @@ gen_reqid(void)
     } while (reqid != start);
 
     exit_log("unable to allocate reqid");
+    return 0; /* never reached ... */
 }
 
 void