From 28e153ceff9077286044fb1691964c4aa0864260 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sun, 15 Jun 2025 11:22:01 +0200 Subject: überflüssiges 't' aus dem fopen()-call wieder entfernt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bcrypt-test.c | 6 +++--- makefile | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bcrypt-test.c b/bcrypt-test.c index 3bebda3..57cf390 100644 --- a/bcrypt-test.c +++ b/bcrypt-test.c @@ -35,7 +35,7 @@ create_user(const char *username, const char *password) // NOLINT } } - FILE *database = fopen(USER_DATABASE, "at"); + FILE *database = fopen(USER_DATABASE, "a"); if ( database == NULL ) { return false; } @@ -63,7 +63,7 @@ create_user(const char *username, const char *password) // NOLINT bool check_user(const char *const username, const char *const password) // NOLINT { - FILE *database = fopen(USER_DATABASE, "rt"); + FILE *database = fopen(USER_DATABASE, "r"); if ( database == NULL ) { return false; } @@ -105,7 +105,7 @@ check_user(const char *const username, const char *const password) // NOLINT bool check_user_if_exists(const char *username) { - FILE *database = fopen(USER_DATABASE, "rt"); + FILE *database = fopen(USER_DATABASE, "r"); if ( database == NULL ) { return false; } diff --git a/makefile b/makefile index e0a8644..d842299 100644 --- a/makefile +++ b/makefile @@ -3,7 +3,7 @@ all: bcrypt-test # git clone https://github.com/mikejsavage/lua-bcrypt.git LUA_BCRYPT_PATH=../lua-bcrypt/src -CFLAGS =-Wall -Werror -Wno-pointer-sign -std=c17 -O2 -I$(LUA_BCRYPT_PATH) +CFLAGS=-Wall -Werror -Wno-pointer-sign -std=c17 -O2 -I$(LUA_BCRYPT_PATH) bcrypt-test: bcrypt-test.o bcrypt-lib.a cc -o $@ bcrypt-test.o bcrypt-lib.a -- cgit v1.3