From a031634bd64c7f30c4ace5ca06a5a47600b42f47 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 8 Oct 2020 01:29:12 -0700 Subject: *: more cosmetic formatting cleanups Making things a bit more consistent --- src/rmd_cache.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/rmd_cache.c') diff --git a/src/rmd_cache.c b/src/rmd_cache.c index 1353bc2..bef6a83 100644 --- a/src/rmd_cache.c +++ b/src/rmd_cache.c @@ -48,7 +48,8 @@ * \n number to be used as a postfix * */ -static void rmdCacheFileN(char *name, char **newname, int n) { // Nth cache file +static void rmdCacheFileN(char *name, char **newname, int n) // Nth cache file +{ char numbuf[8]; strcpy(*newname, name); @@ -57,7 +58,8 @@ static void rmdCacheFileN(char *name, char **newname, int n) { // Nth cache file strcat(*newname, numbuf); } -int rmdSwapCacheFilesWrite(char *name, int n, gzFile *fp, FILE **ucfp) { +int rmdSwapCacheFilesWrite(char *name, int n, gzFile *fp, FILE **ucfp) +{ char *newname = malloc(strlen(name) + 10); rmdCacheFileN(name, &newname, n); @@ -75,7 +77,8 @@ int rmdSwapCacheFilesWrite(char *name, int n, gzFile *fp, FILE **ucfp) { return ((*fp == NULL) && (*ucfp == NULL)); } -int rmdSwapCacheFilesRead(char *name, int n, gzFile *fp, FILE **ucfp) { +int rmdSwapCacheFilesRead(char *name, int n, gzFile *fp, FILE **ucfp) +{ char *newname = malloc(strlen(name) + 10); rmdCacheFileN(name, &newname, n); @@ -91,7 +94,8 @@ int rmdSwapCacheFilesRead(char *name, int n, gzFile *fp, FILE **ucfp) { return ((*fp == NULL) && (*ucfp == NULL)); } -int rmdPurgeCache(CacheData *cache_data_t, int sound) { +int rmdPurgeCache(CacheData *cache_data_t, int sound) +{ struct stat buff; char *fname; int exit_value = 0; @@ -131,7 +135,8 @@ int rmdPurgeCache(CacheData *cache_data_t, int sound) { return exit_value; } -void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_data_t) { +void rmdInitCacheData(ProgData *pdata, EncData *enc_data_t, CacheData *cache_data_t) +{ int width, height, pid; char pidbuf[8]; -- cgit v1.2.3