ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.15 -> 1.16
--- lmtp2nntp_config.c 2002/01/24 12:04:46 1.15
+++ lmtp2nntp_config.c 2002/01/24 16:25:54 1.16
@@ -77,5 +77,18 @@
void config_context(lmtp2nntp_t *ctx)
{
+ optionval_t *ov;
+ char *cp;
+
+ printf("DEBUG: Hello, World!\n");
+ //case 'C': /*POD [B<-C> I<childsmax>] */
+ if (val_get(ctx->val, "option.childsmax", &ov) != VAL_OK)
+ fprintf(stderr, "%s:Error: (internal) config did not register 'childsmax' option\n", ctx->progname);
+ printf("DEBUG: option_childsmax %d = \"%s\"\n", ov->ndata, ov->data.s);
+ ctx->option_childsmax = atoi(ov->data.s);
+ if (ctx->option_childsmax <= 0) {
+ fprintf(stderr, "%s:Error: Invalid number (%d) to option -C\n", ctx->progname, ctx->option_childsmax);
+ return; //FIXME CU(ERR_EXECUTION);
+ }
return;
}
|
|