Guest User

Untitled

a guest
Oct 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. void puzyrek_host PROTO2(char *, hand, char *, host)
  2. {
  3. struct userrec *u;
  4. struct eggqueue *q, *p;
  5. int cnt, i;
  6.  
  7. if (!(*hand) || hand[0]=='*') return;
  8. u = get_user_by_host(host);
  9. cnt = (int)p = 0;
  10. q = u->host;
  11. while (q != NULL) {
  12. i = wild_match(q->item, host);
  13. if (i > cnt) {
  14. if (p) {
  15. p->next = q->next;
  16. q->next = u->host;
  17. u->host = q;
  18. q = p;
  19. }
  20. cnt = i;
  21. }
  22. p = q;
  23. q = q->next;
  24. }
  25. }
  26.  
  27.  
  28. userrec.c: In function `puzyrek_host':
  29. userrec.c:728: warning: use of cast expressions as lvalues is deprecated
Add Comment
Please, Sign In to add comment