From 63f507949de8d72fa3d1c32af36560eee600002e Mon Sep 17 00:00:00 2001 From: Gregory Date: Tue, 23 Oct 2018 21:15:14 +0300 Subject: [PATCH] fix error messages --- src/ft_ssl_md5_file.c | 2 +- src/ft_ssl_sha224_file.c | 2 +- src/ft_ssl_sha256_file.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ft_ssl_md5_file.c b/src/ft_ssl_md5_file.c index c522645a..65a59eb6 100644 --- a/src/ft_ssl_md5_file.c +++ b/src/ft_ssl_md5_file.c @@ -28,7 +28,7 @@ void ft_ssl_md5_file(const char *filename, t_ft_ssl *ft_ssl) (void)ft_ssl; if ((fd = open(filename, O_RDONLY)) == -1) { - perror("Error: "); + perror("ft_ssl: "); exit(1); } ft_md5_init(&ctx); diff --git a/src/ft_ssl_sha224_file.c b/src/ft_ssl_sha224_file.c index b72e1c42..8d4bff3b 100644 --- a/src/ft_ssl_sha224_file.c +++ b/src/ft_ssl_sha224_file.c @@ -28,7 +28,7 @@ void ft_ssl_sha224_file(const char *filename, t_ft_ssl *ft_ssl) (void)ft_ssl; if ((fd = open(filename, O_RDONLY)) == -1) { - perror("./ft_ssl: "); + perror("ft_ssl: "); exit(1); } ft_sha224_init(&ctx); diff --git a/src/ft_ssl_sha256_file.c b/src/ft_ssl_sha256_file.c index fd7f103a..e7084524 100644 --- a/src/ft_ssl_sha256_file.c +++ b/src/ft_ssl_sha256_file.c @@ -28,7 +28,7 @@ void ft_ssl_sha256_file(const char *filename, t_ft_ssl *ft_ssl) (void)ft_ssl; if ((fd = open(filename, O_RDONLY)) == -1) { - perror("./ft_ssl: "); + perror("ft_ssl: "); exit(1); } ft_sha256_init(&ctx);