Mercurial > pidgin
comparison src/toc.c @ 940:9fca1293f871
[gaim-migrate @ 950]
Patches from kylev
committer: Tailor Script <tailor@pidgin.im>
| author | Rob Flynn <gaim@robflynn.com> |
|---|---|
| date | Sun, 01 Oct 2000 00:20:03 +0000 |
| parents | a88af4cc626a |
| children | fa681641643d |
comparison
equal
deleted
inserted
replaced
| 939:69955d88ab42 | 940:9fca1293f871 |
|---|---|
| 820 return NULL; | 820 return NULL; |
| 821 } | 821 } |
| 822 | 822 |
| 823 void toc_build_config(char *s, int len, gboolean show) | 823 void toc_build_config(char *s, int len, gboolean show) |
| 824 { | 824 { |
| 825 GList *grp = groups; | 825 GSList *grp = groups; |
| 826 GList *mem; | 826 GList *mem; |
| 827 struct group *g; | 827 struct group *g; |
| 828 struct buddy *b; | 828 struct buddy *b; |
| 829 GList *plist = permit; | 829 GList *plist = permit; |
| 830 GList *dlist = deny; | 830 GList *dlist = deny; |
| 843 b = (struct buddy *)mem->data; | 843 b = (struct buddy *)mem->data; |
| 844 pos += g_snprintf(&s[pos], len - pos, "b %s%s%s\n", b->name, | 844 pos += g_snprintf(&s[pos], len - pos, "b %s%s%s\n", b->name, |
| 845 show ? ":" : "", show ? b->show : ""); | 845 show ? ":" : "", show ? b->show : ""); |
| 846 mem = mem->next; | 846 mem = mem->next; |
| 847 } | 847 } |
| 848 grp = grp ->next; | 848 grp = g_slist_next(grp); |
| 849 } | 849 } |
| 850 | 850 |
| 851 while(plist) { | 851 while(plist) { |
| 852 pos += g_snprintf(&s[pos], len - pos, "p %s\n", (char *)plist->data); | 852 pos += g_snprintf(&s[pos], len - pos, "p %s\n", (char *)plist->data); |
| 853 plist=plist->next; | 853 plist=plist->next; |
