Files
ports/mail/mboxgrep/files/patch-src_main.c
T
Stefan Eßer 540662a457 Fix build with -fno-common
Since files that are patched in legacy patch files are affected, all
patches are regenerated with make makepatch.

In order to have makepatch operate on only the patched sources without the
result of RE_INPLACE being integrated into the patch files, move the
in-place editing of sources from post-patch to pre-build.
2020-09-23 12:24:21 +00:00

24 lines
582 B
C

--- src/main.c.orig 2003-08-24 19:23:50 UTC
+++ src/main.c
@@ -55,8 +55,9 @@ pcre_extra *hints;
char *boxname, *outboxname, *pipecmd, *tmpfilename;
int maildir_count = 0;
int count = 0;
-void *tmpp;
+FILE *tmpp;
checksum_t *cs;
+option_t config;
int
main (int argc, char **argv)
@@ -238,8 +239,7 @@ main (int argc, char **argv)
config.pid = (int) getpid ();
}
- cs = (checksum_t *) xmalloc (sizeof (checksum_t));
- cs->md5 = (char **) xcalloc (1, sizeof (char **));
+ cs = xmalloc (sizeof (checksum_t));
cs->n = 0;
if (optind < argc && ! haveregex)