diff options
author | Bruno Haible <bruno@clisp.org> | 2006-10-06 13:27:49 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:14:05 +0200 |
commit | 5e58c7b791bd530b7dc47b197774aa23d797c462 (patch) | |
tree | d60e2a887248ac2425dc9a8c8e0c2cdcf8f4b529 /gettext-tools/src/write-java.c | |
parent | 8bf7942a90698988369163ab992215cff743478a (diff) | |
download | external_gettext-5e58c7b791bd530b7dc47b197774aa23d797c462.zip external_gettext-5e58c7b791bd530b7dc47b197774aa23d797c462.tar.gz external_gettext-5e58c7b791bd530b7dc47b197774aa23d797c462.tar.bz2 |
Use the new _temp functions from the create-temp module.
Diffstat (limited to 'gettext-tools/src/write-java.c')
-rw-r--r-- | gettext-tools/src/write-java.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gettext-tools/src/write-java.c b/gettext-tools/src/write-java.c index af0b3e4..6b21646 100644 --- a/gettext-tools/src/write-java.c +++ b/gettext-tools/src/write-java.c @@ -1002,7 +1002,7 @@ but the Java ResourceBundle format doesn't support contexts\n"))); /* Create the Java file. */ register_temp_file (tmpdir, java_file_name); - java_file = fopen (java_file_name, "w"); + java_file = fopen_temp (java_file_name, "w"); if (java_file == NULL) { error (0, errno, _("failed to create \"%s\""), java_file_name); @@ -1012,7 +1012,7 @@ but the Java ResourceBundle format doesn't support contexts\n"))); write_java_code (java_file, class_name, mlp, assume_java2); - if (fwriteerror (java_file)) + if (fwriteerror_temp (java_file)) { error (0, errno, _("error while writing \"%s\" file"), java_file_name); goto quit3; |