]> gitweb.hhaalo.de Git - feierabend.git/commitdiff
fix line length validate
authorBastian Dehn <hhaalo@arcor.de>
Tue, 9 Jun 2026 17:38:04 +0000 (19:38 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Tue, 9 Jun 2026 17:49:03 +0000 (19:49 +0200)
src/validate.c

index f26f9bc58bca891a55a13a835b4ee015b868e02f..9996c93aa47bb26406fafb0840ad9685a10bee38 100644 (file)
@@ -6,11 +6,11 @@
 #define HOUR_REGEX "^([0-9]|1[0-9]|2[0-3])$"
 #define MINUTE_REGEX "^([0-9]|[1-5][0-9])$"
 
-bool _validate_string(const char* str, const char* regex_pattern)
+bool _validate_string(const char* str, const char* pattern)
 {
        regex_t regex;
 
-       int comp_success = regcomp(&regex, regex_pattern, REG_NOSUB | REG_EXTENDED);
+       int comp_success = regcomp(&regex, pattern, REG_NOSUB | REG_EXTENDED);
        if (comp_success != 0)
                return false;