Changeset 4669 for trunk/oscam-simples.c
- Timestamp:
- 02/01/11 21:34:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-simples.c
r4668 r4669 382 382 { 383 383 struct in_addr in; 384 in.s_addr= cs_inet_order(n);384 in.s_addr=n; 385 385 return((char *)inet_ntoa(in)); 386 386 } … … 388 388 in_addr_t cs_inet_addr(char *txt) 389 389 { 390 if (!inet_byteorder)391 inet_byteorder=((inet_addr("1.2.3.4")+1)==inet_addr("1.2.3.5")) ? 1 : 2;392 if (inet_byteorder == 1)393 390 return(inet_addr(txt)); 394 else395 return(inet_network(txt));396 391 } 397 392
Note:
See TracChangeset
for help on using the changeset viewer.