tools: Use platform abstraction for I/O.
authorJustus Winter <justus@g10code.com>
Tue, 24 Jan 2017 14:06:43 +0000 (15:06 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 24 Jan 2017 14:44:16 +0000 (15:44 +0100)
commit77b8aff4e1bb641f497e63230a5006ab70e6c3a8
tree03154294b016ab543244b3b0e43658931d409e5b
parentbfd75e9492fc4edd86f4049a62304943a7b2a29a
tools: Use platform abstraction for I/O.

* tools/gpgconf-comp.c (retrieve_options_from_file): Use a
gpgrt_stream_t for 'list_file'.  Adapt accordingly.
(copy_file): Likewise for 'src' and 'dst'.
(change_options_file): Likewise for 'src_file' and 'dest_file'.
(change_options_program): Likewise for 'src_file' and 'dest_file'.
(gc_process_gpgconf_conf): Likewise for 'config'.
--
Werner asked me to make gpgconf use the platform abstractions that
were introduced after gpgconf's inception.

Signed-off-by: Justus Winter <justus@g10code.com>
tools/gpgconf-comp.c