Back to index

courier  0.68.2
comconfig.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 1998 - 1999 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #include      "comconfig.h"
00007 #include      "courier.h"
00008 #include      <stdlib.h>
00009 #include      <stdio.h>
00010 
00011 int config_retrybeta()
00012 {
00013 char   *f=config_localfilename("retrybeta");
00014 char   *p=config_read1l(f);
00015 int    n=3;
00016 
00017        free(f);
00018 
00019        if (p)
00020        {
00021               n=atoi(p);
00022               free(p);
00023        }
00024        return (n);
00025 }
00026 
00027 int config_retrymaxdelta()
00028 {
00029 char   *f=config_localfilename("retrymaxdelta");
00030 char   *p=config_read1l(f);
00031 int    n=3;
00032 
00033        free(f);
00034        if (p)
00035        {
00036               n=atoi(p);
00037               free(p);
00038        }
00039        return (n);
00040 }