summaryrefslogtreecommitdiff
path: root/navit/maptool/tempfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'navit/maptool/tempfile.c')
-rw-r--r--navit/maptool/tempfile.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/navit/maptool/tempfile.c b/navit/maptool/tempfile.c
index 65614d945..bdb4dad96 100644
--- a/navit/maptool/tempfile.c
+++ b/navit/maptool/tempfile.c
@@ -23,12 +23,10 @@
#include "maptool.h"
#include "debug.h"
-char *
-tempfile_name(char *suffix, char *name) {
+char *tempfile_name(char *suffix, char *name) {
return g_strdup_printf("%s_%s.tmp",name, suffix);
}
-FILE *
-tempfile(char *suffix, char *name, int mode) {
+FILE *tempfile(char *suffix, char *name, int mode) {
char *buffer=tempfile_name(suffix, name);
FILE *ret=NULL;
switch (mode) {
@@ -46,15 +44,13 @@ tempfile(char *suffix, char *name, int mode) {
return ret;
}
-void
-tempfile_unlink(char *suffix, char *name) {
+void tempfile_unlink(char *suffix, char *name) {
char buffer[4096];
sprintf(buffer,"%s_%s.tmp",name, suffix);
unlink(buffer);
}
-void
-tempfile_rename(char *suffix, char *from, char *to) {
+void tempfile_rename(char *suffix, char *from, char *to) {
char buffer_from[4096],buffer_to[4096];
sprintf(buffer_from,"%s_%s.tmp",from,suffix);
sprintf(buffer_to,"%s_%s.tmp",to,suffix);