Home | History | Annotate | Download | only in bthcid

Lines Matching defs:cl

143 	struct client		*cl;
159 cl = malloc(sizeof(struct client));
160 if (cl == NULL) {
166 memset(cl, 0, sizeof(struct client));
167 cl->fd = fd;
169 event_set(&cl->ev, fd, EV_READ | EV_PERSIST, process_client, cl);
170 if (event_add(&cl->ev, NULL) < 0) {
172 free(cl);
178 LIST_INSERT_HEAD(&client_list, cl, next);
188 struct client *cl = arg;
198 LIST_REMOVE(cl, next);
199 free(cl);
260 struct client *cl;
270 LIST_FOREACH(cl, &client_list, next) {
271 if (send(cl->fd, &cp, sizeof(cp), MSG_NOSIGNAL) != sizeof(cp))