Changeset 211

Show
Ignore:
Timestamp:
02/09/08 19:28:36 (7 months ago)
Author:
sip
Message:

Fixed x64 compilation

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libh324m/Makefile

    r145 r211  
    1 CFLAGS=-g -O0 
    2 LDFLAGS=`ptlib-config --libs` 
     1CXXFLAGS=-g -O3 -fPIC -DPIC 
     2LDFLAGS=`ptlib-config --libs` -fPIC 
    33 
    44all: libh324m test 
  • libh324m/src/FileLogger.cpp

    r210 r211  
    5151                        { 
    5252                                char name[256]; 
    53                                 sprintf(name,"/tmp/h245_out_%x.log",(unsigned int)this); 
     53                                sprintf(name,"/tmp/h245_out_%p.log",this); 
    5454                                int fd = open(name,O_CREAT|O_WRONLY|O_APPEND, S_IRUSR | S_IWUSR ); 
    5555                                if (fd!=-1) 
     
    122122                        { 
    123123                                char name[256]; 
    124                                 sprintf(name,"/tmp/h245_%x.log",(unsigned int)this); 
     124                                sprintf(name,"/tmp/h245_%p.log",this); 
    125125                                int fd = open(name,O_CREAT|O_WRONLY|O_APPEND, S_IRUSR | S_IWUSR ); 
    126126                                if (fd!=-1) 
     
    185185        { 
    186186                char name[256]; 
    187                 sprintf(name,"/tmp/media_%x.raw",(unsigned int)this); 
     187                sprintf(name,"/tmp/media_%p.raw",this); 
    188188                int fd = open(name,O_CREAT|O_WRONLY|O_APPEND, S_IRUSR | S_IWUSR ); 
    189189                if (fd!=-1) 
     
    200200        { 
    201201                char name[256]; 
    202                 sprintf(name,"/tmp/h223_in_%x.raw",(unsigned int)this); 
     202                sprintf(name,"/tmp/h223_in_%p.raw",this); 
    203203                int fd = open(name,O_CREAT|O_WRONLY|O_APPEND, S_IRUSR | S_IWUSR ); 
    204204                if (fd!=-1) 
     
    215215        { 
    216216                char name[256]; 
    217                 sprintf(name,"/tmp/h223_out_%x.raw",(unsigned int)this); 
     217                sprintf(name,"/tmp/h223_out_%p.raw",this); 
    218218                int fd = open(name,O_CREAT|O_WRONLY|O_APPEND, S_IRUSR | S_IWUSR ); 
    219219                if (fd!=-1) 
  • libh324m/src/H245MasterSlave.cpp

    r198 r211  
    2626{ 
    2727        //Initialize seed 
    28         srand((unsigned)this); 
     28        srand(time(NULL)); 
    2929 
    3030        //Set initial values 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software