diff options
| author | Thomas Schmucker <ts@its1.de> | 2025-06-15 11:22:01 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2025-06-15 11:22:01 +0200 |
| commit | 28e153ceff9077286044fb1691964c4aa0864260 (patch) | |
| tree | a3b0b37f71d7147c1d873c35a7cab0a4d78c25b4 /bcrypt-test.c | |
| parent | 7270dcb04a0cff4189e7f43cf7415fc8238eda37 (diff) | |
| download | use-bcrypt-28e153ceff9077286044fb1691964c4aa0864260.tar.gz use-bcrypt-28e153ceff9077286044fb1691964c4aa0864260.tar.bz2 use-bcrypt-28e153ceff9077286044fb1691964c4aa0864260.zip | |
überflüssiges 't' aus dem fopen()-call wieder entfernt
Diffstat (limited to 'bcrypt-test.c')
| -rw-r--r-- | bcrypt-test.c | 6 |
1 files changed, 3 insertions, 3 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 | |||
| 35 | } | 35 | } |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | FILE *database = fopen(USER_DATABASE, "at"); | 38 | FILE *database = fopen(USER_DATABASE, "a"); |
| 39 | if ( database == NULL ) { | 39 | if ( database == NULL ) { |
| 40 | return false; | 40 | return false; |
| 41 | } | 41 | } |
| @@ -63,7 +63,7 @@ create_user(const char *username, const char *password) // NOLINT | |||
| 63 | bool | 63 | bool |
| 64 | check_user(const char *const username, const char *const password) // NOLINT | 64 | check_user(const char *const username, const char *const password) // NOLINT |
| 65 | { | 65 | { |
| 66 | FILE *database = fopen(USER_DATABASE, "rt"); | 66 | FILE *database = fopen(USER_DATABASE, "r"); |
| 67 | if ( database == NULL ) { | 67 | if ( database == NULL ) { |
| 68 | return false; | 68 | return false; |
| 69 | } | 69 | } |
| @@ -105,7 +105,7 @@ check_user(const char *const username, const char *const password) // NOLINT | |||
| 105 | bool | 105 | bool |
| 106 | check_user_if_exists(const char *username) | 106 | check_user_if_exists(const char *username) |
| 107 | { | 107 | { |
| 108 | FILE *database = fopen(USER_DATABASE, "rt"); | 108 | FILE *database = fopen(USER_DATABASE, "r"); |
| 109 | if ( database == NULL ) { | 109 | if ( database == NULL ) { |
| 110 | return false; | 110 | return false; |
| 111 | } | 111 | } |
