Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void puzyrek_host PROTO2(char *, hand, char *, host)
- {
- struct userrec *u;
- struct eggqueue *q, *p;
- int cnt, i;
- if (!(*hand) || hand[0]=='*') return;
- u = get_user_by_host(host);
- cnt = (int)p = 0;
- q = u->host;
- while (q != NULL) {
- i = wild_match(q->item, host);
- if (i > cnt) {
- if (p) {
- p->next = q->next;
- q->next = u->host;
- u->host = q;
- q = p;
- }
- cnt = i;
- }
- p = q;
- q = q->next;
- }
- }
- userrec.c: In function `puzyrek_host':
- userrec.c:728: warning: use of cast expressions as lvalues is deprecated
Add Comment
Please, Sign In to add comment