summaryrefslogtreecommitdiff
path: root/libavutil/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/file.c')
-rw-r--r--libavutil/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavutil/file.c b/libavutil/file.c
index 5e0dc7ab68..359d290e99 100644
--- a/libavutil/file.c
+++ b/libavutil/file.c
@@ -137,9 +137,10 @@ void av_file_unmap(uint8_t *bufptr, size_t size)
#endif
}
-int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx) {
+int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_ctx)
+{
FileLogContext file_log_ctx = { &file_log_ctx_class, log_offset, log_ctx };
- int fd=-1;
+ int fd = -1;
#if !HAVE_MKSTEMP
void *ptr= tempnam(NULL, prefix);
if(!ptr)
@@ -149,7 +150,7 @@ int av_tempfile(const char *prefix, char **filename, int log_offset, void *log_c
free(ptr);
#else
size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
- *filename = av_malloc(len);
+ *filename = av_malloc(len);
#endif
/* -----common section-----*/
if (!*filename) {