aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/app.c')
-rw-r--r--scd/app.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/scd/app.c b/scd/app.c
index bb33a56c3..957345e1e 100644
--- a/scd/app.c
+++ b/scd/app.c
@@ -973,18 +973,18 @@ report_change (int slot, int old_status, int cur_status)
char *homestr, *envstr;
char *fname;
char templ[50];
- FILE *fp;
+ estream_t fp;
snprintf (templ, sizeof templ, "reader_%d.status", slot);
fname = make_filename (gnupg_homedir (), templ, NULL );
- fp = fopen (fname, "w");
+ fp = es_fopen (fname, "w");
if (fp)
{
- fprintf (fp, "%s\n",
+ es_fprintf (fp, "%s\n",
(cur_status & 1)? "USABLE":
(cur_status & 4)? "ACTIVE":
(cur_status & 2)? "PRESENT": "NOCARD");
- fclose (fp);
+ es_fclose (fp);
}
xfree (fname);