aboutsummaryrefslogtreecommitdiffstats
path: root/g10/encrypt.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-03-08 17:05:37 +0000
committerWerner Koch <[email protected]>2010-03-08 17:05:37 +0000
commit40a78fab0c224bfb92097a6d7f93c0893740d190 (patch)
tree3d8b2bb9ad0346fa80f04cf7bab3181d55bff31e /g10/encrypt.c
parentMore cleanups (diff)
downloadgnupg-40a78fab0c224bfb92097a6d7f93c0893740d190.tar.gz
gnupg-40a78fab0c224bfb92097a6d7f93c0893740d190.zip
Use macros for iobuf ioctls.
Diffstat (limited to '')
-rw-r--r--g10/encrypt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/encrypt.c b/g10/encrypt.c
index 649ea337f..b193d4b4e 100644
--- a/g10/encrypt.c
+++ b/g10/encrypt.c
@@ -185,7 +185,7 @@ encrypt_simple (const char *filename, int mode, int use_seskey)
/* Prepare iobufs. */
inp = iobuf_open(filename);
if (inp)
- iobuf_ioctl (inp,3,1,NULL); /* disable fd caching */
+ iobuf_ioctl (inp, IOBUF_IOCTL_NO_CACHE, 1, NULL);
if (inp && is_secured_file (iobuf_get_fd (inp)))
{
iobuf_close (inp);
@@ -526,7 +526,7 @@ encrypt_crypt (int filefd, const char *filename,
/* Prepare iobufs. */
inp = iobuf_open_fd_or_name (filefd, filename, "rb");
if (inp)
- iobuf_ioctl (inp, 3, 1, NULL); /* Disable fd caching. */
+ iobuf_ioctl (inp, IOBUF_IOCTL_NO_CACHE, 1, NULL);
if (inp && is_secured_file (iobuf_get_fd (inp)))
{
iobuf_close (inp);