Reduce die function scope and remove guard macro from sha256.h. - sup - small tool for privilege escalation
 (HTM) git clone git://bitreich.org/sup git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sup
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f9fac86bc362d478bde9cba5dd585e1c63e21079
 (DIR) parent 2d1c01d008c45941d3e710f7ec5f7abc94fcffcc
 (HTM) Author: parazyd <parazyd@dyne.org>
       Date:   Wed, 27 Jan 2021 15:19:29 +0100
       
       Reduce die function scope and remove guard macro from sha256.h.
       
       Diffstat:
         M sha256.h                            |       5 -----
         M sup.c                               |       2 +-
       
       2 files changed, 1 insertion(+), 6 deletions(-)
       ---
 (DIR) diff --git a/sha256.h b/sha256.h
       @@ -1,6 +1,3 @@
       -#ifndef _SHA256_H
       -#define _SHA256_H
       -
        #ifndef uint8
        #define uint8  unsigned char
        #endif
       @@ -20,5 +17,3 @@ sha256_context;
        void sha256_starts( sha256_context *ctx );
        void sha256_update( sha256_context *ctx, uint8 *input, uint32 length );
        void sha256_finish( sha256_context *ctx, uint8 digest[32] );
       -
       -#endif /* sha256.h */
 (DIR) diff --git a/sup.c b/sup.c
       @@ -23,7 +23,7 @@ struct rule_t {
        
        char *argv0;
        
       -void die(char *msg)
       +static void die(char *msg)
        {
                fprintf(stderr, "%s\n", msg);
                exit(1);