OSSP CVS Repository

ossp - Check-in [977]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 977
Date: 2001-Sep-13 14:20:35 (local)
2001-Sep-13 12:20:35 (UTC)
User:thl
Branch:
Comment: portability bugfix for 64bit platforms
Tickets:
Inspections:
Files:
ossp-pkg/lmtp2nntp/lmtp2nntp.c      1.59 -> 1.60     3 inserted, 2 deleted

ossp-pkg/lmtp2nntp/lmtp2nntp.c 1.59 -> 1.60

--- 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    );
 

CVSTrac 2.0.1