aboutsummaryrefslogtreecommitdiffstats
path: root/g10/openfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/openfile.c')
-rw-r--r--g10/openfile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/openfile.c b/g10/openfile.c
index 60910031a..0b768fe5e 100644
--- a/g10/openfile.c
+++ b/g10/openfile.c
@@ -161,7 +161,7 @@ open_outfile( const char *iname, int mode, IOBUF *a )
if( (!iname || (*iname=='-' && !iname[1])) && !opt.outfile ) {
if( !(*a = iobuf_create(NULL)) ) {
log_error(_("%s: can't open: %s\n"), "[stdout]", strerror(errno) );
- rc = G10ERR_CREATE_FILE;
+ rc = GPGERR_CREATE_FILE;
}
else if( opt.verbose )
log_info(_("writing to stdout\n"));
@@ -209,13 +209,13 @@ open_outfile( const char *iname, int mode, IOBUF *a )
if( overwrite_filep( name ) ) {
if( !(*a = iobuf_create( name )) ) {
log_error(_("%s: can't create: %s\n"), name, strerror(errno) );
- rc = G10ERR_CREATE_FILE;
+ rc = GPGERR_CREATE_FILE;
}
else if( opt.verbose )
log_info(_("writing to `%s'\n"), name );
}
else
- rc = G10ERR_FILE_EXISTS;
+ rc = GPGERR_FILE_EXISTS;
gcry_free(buf);
}
return rc;