summaryrefslogtreecommitdiff
path: root/recordmydesktop/src/rmd_jack.c
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-16 23:00:23 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2008-09-16 23:00:23 +0000
commit6263179e32282998844165becb5c4a6a83cf92dc (patch)
tree8db195e60c5e7183758fe1dc12b151bbef1a23e2 /recordmydesktop/src/rmd_jack.c
parent1a552224e9f79089c0f3be4b19dc4f456b409034 (diff)
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
Diffstat (limited to 'recordmydesktop/src/rmd_jack.c')
-rw-r--r--recordmydesktop/src/rmd_jack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/recordmydesktop/src/rmd_jack.c b/recordmydesktop/src/rmd_jack.c
index 25ae297..7ace370 100644
--- a/recordmydesktop/src/rmd_jack.c
+++ b/recordmydesktop/src/rmd_jack.c
@@ -31,7 +31,6 @@
#include "rmd_types.h"
#include "rmd_jack.h"
-#include "rmd_macro.h"
#ifdef HAVE_JACK_H
@@ -147,7 +146,7 @@ static int SetupPorts(JackData *jdata) {
char name[64];//recordMyDesktop:input_n<64 is enough for full name
char num[8];
strcpy(name,"input_");
- I16TOA((i+1),num);
+ snprintf( num, 8, "%d", i+1 );
strcat(name,num);
if((jdata->ports[i]=jack_port_register_p(jdata->client,
name,
@@ -234,7 +233,7 @@ int StartJackClient(JackData *jdata){
//to connetc to a Jack Server
strcpy(rmd_client_name,"recordMyDesktop-");
pid=getpid();
- I16TOA(pid,pidbuf)
+ snprintf( pidbuf, 8, "%d", pid );
strcat(rmd_client_name,pidbuf);
if(LoadJackLib(jdata->jack_lib_handle)){
© All Rights Reserved