| 371 | } |
| 372 | |
| 373 | static void send_one_name(int f, id_t id, const char *name) |
| 374 | { |
| 375 | int len; |
| 376 | |
| 377 | if (!name) |
| 378 | name = ""; |
| 379 | if ((len = strlen(name)) > 255) /* Impossible? */ |
| 380 | len = 255; |
| 381 | |
| 382 | write_varint30(f, id); |
| 383 | write_byte(f, len); |
| 384 | if (len) |
| 385 | write_buf(f, name, len); |
| 386 | } |
| 387 | |
| 388 | static void send_one_list(int f, struct idlist *idlist, int usernames) |
| 389 | { |
no test coverage detected