[pisa-src] r1349 - trunk/libpisa/crypto.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Tue, 27 Oct 2009 16:55:00 +0100

Author: tjansen
Date: Tue Oct 27 16:55:00 2009
New Revision: 1349

Log:
Cosmetics: Functions should start with the curly brace on a new line.

Modified:
   trunk/libpisa/crypto.c

Modified: trunk/libpisa/crypto.c
==============================================================================
--- trunk/libpisa/crypto.c      Tue Oct 27 16:51:53 2009        (r1348)
+++ trunk/libpisa/crypto.c      Tue Oct 27 16:55:00 2009        (r1349)
@@ -29,7 +29,8 @@
        return pisa_cookie_difficulty;
 }
 
-int pisa_set_cookie_difficulty(int k) {
+int pisa_set_cookie_difficulty(int k)
+{
        if (k > PISA_PUZZLE_MAX_K || k < 1) {
                PISA_ERROR("Bad cookie value (%d), min=%d, max=%d\n",
                          k, 1, PISA_PUZZLE_MAX_K);
@@ -78,7 +79,8 @@
  * NOTE! I don't see why 0 couldn't solve the puzzle too, but since the
  * odds are 1/2^64 to try 0, I don't see the point in improving this now.
  */
-uint64_t pisa_solve_puzzle(void *puzzle, struct in6_addr *hits, struct 
in6_addr *hitr) {
+uint64_t pisa_solve_puzzle(void *puzzle, struct in6_addr *hits, struct 
in6_addr *hitr)
+{
        uint64_t mask = 0;
        uint64_t randval = 0;
        uint64_t maxtries = 0;
@@ -168,7 +170,8 @@
  * NOTE! I don't see why 0 couldn't verify the puzzle too, but since the
  * odds are 1/2^64 to try 0, I don't see the point in improving this now.
  */
-uint64_t pisa_verify_puzzle(void *solution, struct in6_addr *hits, struct 
in6_addr *hitr) {
+uint64_t pisa_verify_puzzle(void *solution, struct in6_addr *hits, struct 
in6_addr *hitr)
+{
        uint64_t mask = 0;
        uint64_t randval = 0;
        uint64_t maxtries = 0;

Other related posts:

  • » [pisa-src] r1349 - trunk/libpisa/crypto.c - Thomas Jansen