summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index c04f168..39b9683 100644
--- a/main.c
+++ b/main.c
@@ -38,7 +38,7 @@ static bool matches(const struct majefile * restrict file, const regex_t * restr
char *find_main(struct majefile *sources)
{
regex_t re;
- int rc = regcomp(&re, "int[[:space:]]+main[[:space:]\\(]",
+ int rc = regcomp(&re, "int[[:space:]]+main[[:space:]]*\\(",
REG_EXTENDED | REG_NEWLINE | REG_NOSUB);
if (rc != 0) {
fprintf(stderr, "maje: regcomp() failed\n");