--- lmtp2nntp.c 2001/09/13 07:35:03 1.59
+++ lmtp2nntp.c 2001/09/13 12:20:35 1.60
@@ -121,6 +121,7 @@
};
typedef struct {
+ l2_context_t ctx;
char *progname;
char *option_logfile;
int option_groupmode;
@@ -316,6 +317,7 @@
/* create application context */
if ((ctx = (lmtp2nntp_t *)malloc(sizeof(lmtp2nntp_t))) == NULL)
CU(ERR_EXECUTION);
+ ctx->ctx.vp = ctx;
ctx->progname = strdup(argv[0]);
ctx->option_logfile = NULL;
ctx->option_groupmode = GROUPMODE_ARG;
@@ -555,7 +557,7 @@
CU(ERR_EXECUTION);
}
- if (l2_stream_formatter(ctx->l2, 'P', formatter_prefix, (l2_context_t *)&ctx) != L2_OK) {
+ if (l2_stream_formatter(ctx->l2, 'P', formatter_prefix, &ctx->ctx) != L2_OK) {
fprintf(stderr, "%s:Error: logging failed to register formatter\n", ctx->progname);
CU(ERR_EXECUTION);
}
@@ -634,7 +636,6 @@
signal(SIGSEGV, (void(*)())catchsignal);
signal(SIGSYS, (void(*)())catchsignal);
signal(SIGTERM, (void(*)())catchsignal);
- signal(SIGINFO, SIG_IGN );
signal(SIGUSR1, SIG_IGN );
signal(SIGUSR2, SIG_IGN );
|