version 1.4 | | version 1.5 |
---|
| | |
/* | | /* |
* static char *rcsid_init_c = | | * static char *rcsid_init_c = |
* "$Id: image.c,v 1.4 2003/12/02 18:51:44 ryo_saeba Exp $"; | | * "$Id: image.c,v 1.5 2003/12/14 16:28:47 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
void esrv_send_face(NewSocket *ns,short face_num, int nocache) | | void esrv_send_face(NewSocket *ns,short face_num, int nocache) |
{ | | { |
SockList sl; | | SockList sl; |
int fallback; | | char fallback; |
| | |
if (face_num < 0 || face_num >= nrofpixmaps) { | | if (face_num < 0 || face_num >= nrofpixmaps) { |
LOG(llevError,"esrv_send_face (%d) out of bounds??\n",face_num); | | LOG(llevError,"esrv_send_face (%d) out of bounds??\n",face_num); |
| | |
*/ | | */ |
void send_image_sums(NewSocket *ns, char *params) | | void send_image_sums(NewSocket *ns, char *params) |
{ | | { |
int start, stop, qq,i; | | int start, stop; |
| | short i; |
| | char qq; |
char *cp, buf[MAX_BUF]; | | char *cp, buf[MAX_BUF]; |
SockList sl; | | SockList sl; |
| | |
| | |
SockList_AddChar(&sl, qq); | | SockList_AddChar(&sl, qq); |
| | |
qq = strlen(new_faces[i].name); | | qq = strlen(new_faces[i].name); |
SockList_AddChar(&sl, qq + 1); | | SockList_AddChar(&sl, ( char )( qq + 1 )); |
strcpy(sl.buf + sl.len, new_faces[i].name); | | strcpy(sl.buf + sl.len, new_faces[i].name); |
sl.len += qq; | | sl.len += qq; |
SockList_AddChar(&sl, 0); | | SockList_AddChar(&sl, 0); |