From 6263179e32282998844165becb5c4a6a83cf92dc Mon Sep 17 00:00:00 2001 From: iovar Date: Tue, 16 Sep 2008 23:00:23 +0000 Subject: src/rmd_cache.c , src/rmd_init_encoder.c , src/rmd_jack.c : replaced calls to the redudant I16TOA macro, with calls to snprintf and as a result, the above files no longer depend on src/rmd_macro.h. src/rmd_macro.h : Removed the redudant and now unneeded I16TOA macro. git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@556 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- recordmydesktop/src/rmd_cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'recordmydesktop/src/rmd_cache.c') diff --git a/recordmydesktop/src/rmd_cache.c b/recordmydesktop/src/rmd_cache.c index 18e7bf3..5fe5207 100644 --- a/recordmydesktop/src/rmd_cache.c +++ b/recordmydesktop/src/rmd_cache.c @@ -31,7 +31,7 @@ #include "rmd_types.h" #include "rmd_cache.h" -#include "rmd_macro.h" + #include "rmd_specsfile.h" @@ -49,7 +49,7 @@ static void CacheFileN(char *name, char **newname, int n) { // Nth cache file char numbuf[8]; strcpy(*newname,name); strcat(*newname,"."); - I16TOA((n),numbuf) + snprintf( numbuf, 8, "%d", n ); strcat(*newname,numbuf); } @@ -159,7 +159,7 @@ void InitCacheData(ProgData *pdata, cache_data_t->workdir=(pdata->args).workdir; pid=getpid(); - I16TOA(pid,pidbuf) + snprintf( pidbuf, 8, "%d", pid ); //names are stored relatively to current dir(i.e. no chdir) cache_data_t->projname=malloc(strlen(cache_data_t->workdir)+ 12+strlen(pidbuf)+3); -- cgit v1.2.3