Re: error: expected ')' before '*' token -- What is this ?
- From: Ram Prasad <ramprasad.ap@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 06:51:32 -0700
On Jul 31, 5:25 pm, Eric Sosman <esos...@xxxxxxxxxxxxxxxxxxxx> wrote:
Ram Prasad wrote:
Post all the code in that file and then "line 42" will be in context. It
isn't even apparent from above what IS on line 42. "----"? ". . . "? or
SPF_ ?
The file is here
[...]
SPF_result_t spfcheck_s(SPF_request_t *ecm_spf_request, char* ip,
char* helo, char* sender) {
Just a guess: Does the header file (which you didn't show)
declare a type named `SPF_request_t', or does it declare something
slightly different like `SPF_Request_t' or `SPF_request'? (Or
does it declare `struct SPF_request_t' but not `SPF_request_t'?)
--
Eric Sosman
esos...@xxxxxxxxxxxxxxxxxxxx
I am not much of a cprogrammer myself , ( been doing perl all this
while)
But I am willing to improve
Here you go, this is my mdef.h sorry for not posting all src code in
first place.
The spf header files come from standard libspf2-devel rpm
-------
#ifndef MDEF_H
#include "milterconfig.h"
#define MDEF_H 1
#include "milterconfig.h"
#include <time.h>
#include <errno.h>
#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <sysexits.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <syslog.h>
#include <regex.h> /* Provides regular expression matching */
#include <strings.h> /* String utillity functions */
#include <libmilter/mfapi.h>
#include <netinet/in.h>
# include <inttypes.h>
# include <string.h> /* strstr / strdup */
# include <sys/socket.h> /* inet_ functions / structs */
# include <netinet/in.h> /* inet_ functions / structs */
# include <arpa/inet.h> /* in_addr struct */
# include <unistd.h>
# include <spf.h>
#ifndef true
# define false 0
# define true 1
#endif /* ! true */
struct blist {
char *key;
};
typedef struct blist bl;
struct ecm_list_stru {
int count;
bl *list;
};
typedef struct ecm_list_stru ecml;
#define BLACKLIST_FILE "blacklist.txt"
/* Global functions */
void opendbglog(void);
void addlog(int num_args, ... ) ;
SPF_result_t spfcheck_s(SPF_request_t *ecm_spf_request,char* ip, char*
helo, char* sender);
int compbl(const void *m1, const void *m2);
int init_ecml(ecml* el,char *filename);
int searchlist(ecml el,char *needle);
/* All definitions here */
#define LOGFILENAME "/var/log/milter.log"
#define MLOGLEVEL 5 /* level of error logs generation
0-5 */
#define MAXFROMSIZE 200
#define SAMPLE 1
/* some std structures */
struct mlfiPriv
{
#ifdef SAMPLE
char *mlfi_fname;
FILE *mlfi_fp;
#endif
#ifdef SPFCHECK
char mfrom[MAXFROMSIZE];
#endif
};
#define MLFIPRIV ((struct mlfiPriv *) smfi_getpriv(ctx))
#endif
.
- Follow-Ups:
- Re: error: expected ')' before '*' token -- What is this ?
- From: santosh
- Re: error: expected ')' before '*' token -- What is this ?
- From: Richard
- Re: error: expected ')' before '*' token -- What is this ?
- References:
- error: expected ')' before '*' token -- What is this ?
- From: Ram Prasad
- Re: error: expected ')' before '*' token -- What is this ?
- From: Richard
- Re: error: expected ')' before '*' token -- What is this ?
- From: Ram Prasad
- Re: error: expected ')' before '*' token -- What is this ?
- From: Eric Sosman
- error: expected ')' before '*' token -- What is this ?
- Prev by Date: Re: Staic array de allocation
- Next by Date: Re: error: expected ')' before '*' token -- What is this ?
- Previous by thread: Re: error: expected ')' before '*' token -- What is this ?
- Next by thread: Re: error: expected ')' before '*' token -- What is this ?
- Index(es):
Relevant Pages
|