sup

small tool for privilege escalation
git clone https://git.parazyd.org/sup
Log | Files | Refs | README | LICENSE

commit f9fac86bc362d478bde9cba5dd585e1c63e21079
parent 2d1c01d008c45941d3e710f7ec5f7abc94fcffcc
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:
Msha256.h | 5-----
Msup.c | 2+-
2 files changed, 1 insertion(+), 6 deletions(-)

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 */ 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);