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
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
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,
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>
@ -44,6 +44,9 @@
#include <dmalloc.h>
#endif /* HAVE_LIBDMALLOC */
option_t config;
runtime_t runtime;
int
main (int argc, char **argv)
/* {{{ */

View File

@ -1,6 +1,6 @@
/* -*- C -*-
/*
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
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,
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
#define MBOXGREP_H
@ -118,7 +118,7 @@ typedef struct
format_t format;
lockmethod_t lock;
}
option_t;
option_t;
typedef struct
{
@ -128,9 +128,9 @@ typedef struct
/* mbox_t *tmp_mbox; */
void *tmp_mbox;
}
runtime_t;
runtime_t;
option_t config;
runtime_t runtime;
extern option_t config;
extern runtime_t runtime;
#endif /* MBOXGREP_H */