Example #1
0
static void
news_close(News * news)
{
    if (!news->host)
	return;
    if (news->rf) {
	IStype(news->rf) &= ~IST_UNCLOSE;
	ISclose(news->rf);
	news->rf = NULL;
    }
    if (news->wf) {
	fclose(news->wf);
	news->wf = NULL;
    }
    news->host = NULL;
}
Example #2
0
File: ftp.c Project: kumakichi/w3m
static void
ftp_close(FTP ftp)
{
    if (!ftp->host)
        return;
    if (ftp->rf) {
        IStype(ftp->rf) &= ~IST_UNCLOSE;
        ISclose(ftp->rf);
        ftp->rf = NULL;
    }
    if (ftp->wf) {
        fclose(ftp->wf);
        ftp->wf = NULL;
    }
    if (ftp->data) {
        fclose(ftp->data);
        ftp->data = NULL;
    }
    ftp->host = NULL;
    return;
}
Example #3
0
File: istream.c Project: macks/w3m
static void
ens_close(struct ens_handle *handle)
{
    ISclose(handle->is);
}