Ticket #9860: 0003-Silence-GCC-warning.patch

File 0003-Silence-GCC-warning.patch, 841 bytes (added by rl1987, 6 years ago)
  • src/or/router.c

    From 51baffb1d71afd7f862c239faa4bc2986d16781a Mon Sep 17 00:00:00 2001
    From: rl1987 <rl1987@sdf.lonestar.org>
    Date: Sun, 3 Nov 2013 15:48:28 +0200
    Subject: [PATCH 3/3] Silence GCC warning.
    
    ---
     src/or/router.c | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)
    
    diff --git a/src/or/router.c b/src/or/router.c
    index 568bd4c..ea30e24 100755
    a b init_keys(void) 
    706706  dir_server_t *ds;
    707707  int v3_digest_set = 0;
    708708  authority_cert_t *cert = NULL;
     709  static short int already_printed_fp = 0;
    709710
    710711  if (!key_lock)
    711712    key_lock = tor_mutex_new();
    init_keys(void) 
    920921  tor_free(cp);
    921922  tor_free(keydir);
    922923
    923   static short int already_printed_fp = 0;
    924 
    925924  if (!already_printed_fp) {
    926925    already_printed_fp = 1;
    927926    log_notice(LD_GENERAL,