diff options
author | reinelt <> | 2003-02-22 07:53:10 +0000 |
---|---|---|
committer | reinelt <> | 2003-02-22 07:53:10 +0000 |
commit | 90be5ac59fddad620f66ebc9dc813802cd45a7e3 (patch) | |
tree | 9a0596fed56b4985e15b7d677c43c0bda80fbabb /mail2.c | |
parent | db2a64cd4d6e46a6563181f38da2a0a01f56a559 (diff) | |
download | lcd4linux-90be5ac59fddad620f66ebc9dc813802cd45a7e3.tar.gz |
[lcd4linux @ 2003-02-22 07:53:09 by reinelt]
cfg_get(key,defval)
Diffstat (limited to 'mail2.c')
-rw-r--r-- | mail2.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: mail2.c,v 1.7 2002/12/05 19:23:01 reinelt Exp $ +/* $Id: mail2.c,v 1.8 2003/02/22 07:53:10 reinelt Exp $ * * mail: pop3, imap, news functions * @@ -20,6 +20,9 @@ * * * $Log: mail2.c,v $ + * Revision 1.8 2003/02/22 07:53:10 reinelt + * cfg_get(key,defval) + * * Revision 1.7 2002/12/05 19:23:01 reinelt * fixed undefined operations found by gcc3 * @@ -201,7 +204,7 @@ static int check_nntp(char *user, char *pass, char *machine, *total = 0; *unseen = 0; - strcpy(buf, cfg_get("Newsrc") ?: ".newsrc"); + strcpy(buf, cfg_get("Newsrc",".newsrc")); if (*buf == 0 || ((fp = fopen(buf, "r")) == NULL)) { error("Couldn't open .newsrc-file '%s'", buf); return -1; |