1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-10 21:38:50 +01:00

Minor cleanups

This commit is contained in:
Werner Koch 2001-12-22 13:12:24 +00:00
parent ab430c4b24
commit ccb1f8c175
5 changed files with 28 additions and 18 deletions

View File

@ -1,3 +1,7 @@
2001-12-22 Werner Koch <wk@gnupg.org>
* encode.c (encode_simple, encode_crypt): i18n 2 strings.
2001-12-22 Timo Schulz <ts@winpt.org>
* encode.c (encode_simple, encode_crypt): Use is_file_compressed

View File

@ -86,9 +86,10 @@ encode_simple( const char *filename, int mode )
memset( &tfx, 0, sizeof tfx);
init_packet(&pkt);
if (is_file_compressed(filename, &rc)) {
if (is_file_compressed(filename, &rc))
{
if (opt.verbose)
log_info("`%s' already compressed\n", filename);
log_info(_("`%s' already compressed\n"), filename);
do_compress = 0;
}
if (rc)
@ -284,12 +285,14 @@ encode_crypt( const char *filename, STRLIST remusr )
}
}
if (is_file_compressed(filename, &rc2)) {
if (is_file_compressed(filename, &rc2))
{
if (opt.verbose)
log_info("`%s' already compressed\n", filename);
log_info(_("`%s' already compressed\n"), filename);
do_compress = 0;
}
if (rc2) {
if (rc2)
{
rc = rc2;
goto leave;
}

View File

@ -1,6 +1,6 @@
2001-12-22 Timo Schulz <ts@winpt.org>
* util.h: Add is_file_compressed().
* util.h (is_file_compressed): New.
2001-12-19 Werner Koch <wk@gnupg.org>

View File

@ -227,3 +227,6 @@ leave:
iobuf_close(a);
return rc;
}