Changeset 5279 for trunk/oscam.c
- Timestamp:
- 05/23/11 13:47:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r5275 r5279 1719 1719 * special-flag redir: if set AND data is ECM: this will redirected to appr. client 1720 1720 */ 1721 int32_t read_from_pipe(int32_t fd, uchar **data , int32_t redir)1721 int32_t read_from_pipe(int32_t fd, uchar **data) 1722 1722 { 1723 1723 int32_t rc; … … 1726 1726 memset(buf, 0, sizeof(buf)); 1727 1727 1728 redir=redir;1729 1728 *data=(uchar *)0; 1730 1729 rc=PIP_ID_NUL; … … 1738 1737 } 1739 1738 1740 uchar id[4];1741 memcpy(id, buf, 3);1742 id[3]='\0';1739 //uchar id[4]; 1740 //memcpy(id, buf, 3); 1741 //id[3]='\0'; 1743 1742 1744 1743 //cs_debug_mask(D_TRACE, "read from pipe %d (%s) thread: %8X", fd, id, (uint32_t)pthread_self()); … … 3083 3082 uchar *ptr; 3084 3083 3085 switch(n=read_from_pipe(mfdr, &ptr , 1))3084 switch(n=read_from_pipe(mfdr, &ptr)) 3086 3085 { 3087 3086 case PIP_ID_KCL: //Kill all clients … … 3102 3101 uchar *ptr; 3103 3102 uint16_t n; 3104 int32_t pipeCmd = read_from_pipe(cl->fd_m2c_c, &ptr , 0);3103 int32_t pipeCmd = read_from_pipe(cl->fd_m2c_c, &ptr); 3105 3104 3106 3105 switch(pipeCmd) {
Note:
See TracChangeset
for help on using the changeset viewer.