summaryrefslogtreecommitdiff
path: root/src/rmd_cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rmd_cache.c')
-rw-r--r--src/rmd_cache.c15
1 files changed, 10 insertions, 5 deletions
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];
© All Rights Reserved