sigchk

sign and check files using ed25519
git clone git://z3bra.org/sick
Log | Files | Refs | Submodules | README | LICENSE

commit eda71827483790d76060445b9bf13ca6101faa0a
parent 4b839fbcd1c211ad38bad7122c8d5463357b959f
Author: z3bra <willyatmailoodotorg>
Date:   Mon May  2 23:44:24 2016

Fix return types

Diffstat:
 sick.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sick.c b/sick.c @@ -65,7 +65,7 @@ check_magic(const char *file) if (stat(file, &sb) < 0) { perror(file); - return NULL; + return -1; } magic = malloc(strlen(MAGIC)); @@ -77,7 +77,7 @@ check_magic(const char *file) if (read(fd, magic, strlen(MAGIC)) < (unsigned int)strlen(MAGIC)) { perror(file); close(fd); - return NULL; + return -1; } close(fd); @@ -132,7 +132,7 @@ unsign(const char *file) if (stat(file, &sb) < 0) { perror(file); - return NULL; + return -1; } len = sb.st_size - 64 - strlen(MAGIC);