Fix a compilation error caused by the 'config' and 'runtime' global

variables.
This commit is contained in:
Daniel Spiljar 2023-01-26 21:38:53 +01:00
parent 47d3476be8
commit ae4fda666f
2 changed files with 13 additions and 10 deletions

View File

@ -1,6 +1,6 @@
/* -*- C -*- /*
mboxgrep - scan mailbox for messages matching a regular expression mboxgrep - scan mailbox for messages matching a regular expression
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2006 Daniel Spiljar Copyright (C) 2000 - 2004, 2006, 2023 Daniel Spiljar
Mboxgrep is free software; you can redistribute it and/or modify it Mboxgrep is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by under the terms of the GNU General Public License as published by
@ -16,7 +16,7 @@
along with mboxgrep; if not, write to the Free Software Foundation, along with mboxgrep; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
$Id: main.c,v 1.41 2006-10-22 23:34:49 dspiljar Exp $ */ */
#include <config.h> #include <config.h>
@ -44,6 +44,9 @@
#include <dmalloc.h> #include <dmalloc.h>
#endif /* HAVE_LIBDMALLOC */ #endif /* HAVE_LIBDMALLOC */
option_t config;
runtime_t runtime;
int int
main (int argc, char **argv) main (int argc, char **argv)
/* {{{ */ /* {{{ */

View File

@ -1,6 +1,6 @@
/* -*- C -*- /*
mboxgrep - scan mailbox for messages matching a regular expression mboxgrep - scan mailbox for messages matching a regular expression
Copyright (C) 2000, 2001, 2002, 2003, 2006 Daniel Spiljar Copyright (C) 2000 - 2003, 2006, 2023 Daniel Spiljar
Mboxgrep is free software; you can redistribute it and/or modify it Mboxgrep is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by under the terms of the GNU General Public License as published by
@ -16,7 +16,7 @@
along with mboxgrep; if not, write to the Free Software Foundation, along with mboxgrep; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
$Id: mboxgrep.h,v 1.31 2006-10-22 23:34:49 dspiljar Exp $ */ */
#ifndef MBOXGREP_H #ifndef MBOXGREP_H
#define MBOXGREP_H #define MBOXGREP_H
@ -130,7 +130,7 @@ typedef struct
} }
runtime_t; runtime_t;
option_t config; extern option_t config;
runtime_t runtime; extern runtime_t runtime;
#endif /* MBOXGREP_H */ #endif /* MBOXGREP_H */