diff options
author | Werner Koch <wk@gnupg.org> | 2010-03-08 18:05:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2010-03-08 18:05:37 +0100 |
commit | 40a78fab0c224bfb92097a6d7f93c0893740d190 (patch) | |
tree | 3d8b2bb9ad0346fa80f04cf7bab3181d55bff31e /g10/keyring.c | |
parent | More cleanups (diff) | |
download | gnupg2-40a78fab0c224bfb92097a6d7f93c0893740d190.tar.xz gnupg2-40a78fab0c224bfb92097a6d7f93c0893740d190.zip |
Use macros for iobuf ioctls.
Diffstat (limited to 'g10/keyring.c')
-rw-r--r-- | g10/keyring.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/keyring.c b/g10/keyring.c index fd0dc2d89..72e3ed5a8 100644 --- a/g10/keyring.c +++ b/g10/keyring.c @@ -1255,20 +1255,20 @@ rename_tmp_file (const char *bakfname, const char *tmpfname, /* It's a secret keyring, so let's force a fsync just to be safe on filesystems that may not sync data and metadata together (e.g. ext4). */ - if (secret && iobuf_ioctl (NULL, 4, 0, (char*)tmpfname)) + if (secret && iobuf_ioctl (NULL, IOBUF_IOCTL_FSYNC, 0, (char*)tmpfname)) { rc = gpg_error_from_syserror (); goto fail; } /* Invalidate close caches. */ - if (iobuf_ioctl (NULL, 2, 0, (char*)tmpfname )) + if (iobuf_ioctl (NULL, IOBUF_IOCTL_INVALIDATE_CACHE, 0, (char*)tmpfname )) { rc = gpg_error_from_syserror (); goto fail; } - iobuf_ioctl (NULL, 2, 0, (char*)bakfname ); - iobuf_ioctl (NULL, 2, 0, (char*)fname ); + iobuf_ioctl (NULL, IOBUF_IOCTL_INVALIDATE_CACHE, 0, (char*)bakfname ); + iobuf_ioctl (NULL, IOBUF_IOCTL_INVALIDATE_CACHE, 0, (char*)fname ); /* first make a backup file except for secret keyrings */ if (!secret) |