summaryrefslogtreecommitdiffstats
path: root/kbx
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2010-03-08 18:05:37 +0100
committerWerner Koch <wk@gnupg.org>2010-03-08 18:05:37 +0100
commit40a78fab0c224bfb92097a6d7f93c0893740d190 (patch)
tree3d8b2bb9ad0346fa80f04cf7bab3181d55bff31e /kbx
parentMore cleanups (diff)
downloadgnupg2-40a78fab0c224bfb92097a6d7f93c0893740d190.tar.xz
gnupg2-40a78fab0c224bfb92097a6d7f93c0893740d190.zip
Use macros for iobuf ioctls.
Diffstat (limited to 'kbx')
-rw-r--r--kbx/ChangeLog4
-rw-r--r--kbx/keybox-update.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/kbx/ChangeLog b/kbx/ChangeLog
index 7b5a546c4..ea4fef8e7 100644
--- a/kbx/ChangeLog
+++ b/kbx/ChangeLog
@@ -1,3 +1,7 @@
+2010-03-08 Werner Koch <wk@g10code.com>
+
+ Use macros for iobuf_ioctl commands.
+
2009-12-08 Werner Koch <wk@g10code.com>
* keybox-search-desc.h (keydb_search_desc): Use u32 type for
diff --git a/kbx/keybox-update.c b/kbx/keybox-update.c
index dfa7af346..e524292d5 100644
--- a/kbx/keybox-update.c
+++ b/kbx/keybox-update.c
@@ -166,9 +166,9 @@ rename_tmp_file (const char *bakfname, const char *tmpfname,
#endif
/* fixme: invalidate close caches (not used with stdio)*/
-/* iobuf_ioctl (NULL, 2, 0, (char*)tmpfname ); */
-/* iobuf_ioctl (NULL, 2, 0, (char*)bakfname ); */
-/* iobuf_ioctl (NULL, 2, 0, (char*)fname ); */
+/* iobuf_ioctl (NULL, IOBUF_IOCTL_INVALIDATE_CACHE, 0, (char*)tmpfname ); */
+/* 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 keyboxes. */
if (!secret)