Changeset 56 for trunk/oscam.c
- Timestamp:
- 04/06/09 23:08:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam.c
r41 r56 186 186 unsigned short n; 187 187 if (!pfd) return(-9); 188 read(pfd, buf, 3);188 if (!read(pfd, buf, 3)) cs_exit(1); 189 189 if (buf[0]!='U') 190 190 { … … 733 733 { 734 734 sad.sin_addr.s_addr=ph->s_ip; 735 sprintf(ptxt[0], ", ip=%s", inet_ntoa( ph->s_ip));735 sprintf(ptxt[0], ", ip=%s", inet_ntoa(sad.sin_addr)); 736 736 } 737 737 else … … 777 777 if (cfg->netprio) 778 778 if (!setsockopt(ph->ptab->ports[port_idx].fd, SOL_SOCKET, SO_PRIORITY, (void *)&cfg->netprio, sizeof(ulong))) 779 sprintf(ptxt[1], ", prio=% d", cfg->netprio);779 sprintf(ptxt[1], ", prio=%ld", cfg->netprio); 780 780 #endif 781 781 … … 1253 1253 er=(ECM_REQUEST *)(buf+3+sizeof(int)); 1254 1254 if( er->cidx && client[er->cidx].fd_m2c ) 1255 write(client[er->cidx].fd_m2c, buf, l+3+sizeof(int));1255 if (!write(client[er->cidx].fd_m2c, buf, l+3+sizeof(int))) cs_exit(1); 1256 1256 rc=PIP_ID_DIR; 1257 1257 } … … 2111 2111 buf[0]='U'; 2112 2112 memcpy(buf+1, &rl, 2); 2113 write(client[idx].ufd, buf, n+3);2113 if (!write(client[idx].ufd, buf, n+3)) cs_exit(1); 2114 2114 } 2115 2115 }
Note:
See TracChangeset
for help on using the changeset viewer.