comparison libpurple/protocols/yahoo/libymsg.c @ 32357:1aa7d06e30c0

The id field is unused
author Mark Doliner <mark@kingant.net>
date Sun, 21 Aug 2011 18:00:53 +0000
parents a5b556ac1de5
children ce6ef84fb8a0
comparison
equal deleted inserted replaced
32356:161df36133ae 32357:1aa7d06e30c0
4036 4036
4037 if (f && full) { 4037 if (f && full) {
4038 YahooPersonalDetails *ypd = &f->ypd; 4038 YahooPersonalDetails *ypd = &f->ypd;
4039 int i; 4039 int i;
4040 struct { 4040 struct {
4041 char *id;
4042 char *text; 4041 char *text;
4043 char *value; 4042 char *value;
4044 } yfields[] = { 4043 } yfields[] = {
4045 {"hp", N_("Home Phone Number"), ypd->phone.home}, 4044 {N_("Home Phone Number"), ypd->phone.home},
4046 {"wp", N_("Work Phone Number"), ypd->phone.work}, 4045 {N_("Work Phone Number"), ypd->phone.work},
4047 {"mo", N_("Mobile Phone Number"), ypd->phone.mobile}, 4046 {N_("Mobile Phone Number"), ypd->phone.mobile},
4048 {NULL, NULL, NULL} 4047 {NULL, NULL}
4049 }; 4048 };
4050 for (i = 0; yfields[i].id; i++) { 4049 for (i = 0; yfields[i].text; i++) {
4051 if (!yfields[i].value || !*yfields[i].value) 4050 if (!yfields[i].value || !*yfields[i].value)
4052 continue; 4051 continue;
4053 purple_notify_user_info_add_pair(user_info, _(yfields[i].text), yfields[i].value); 4052 purple_notify_user_info_add_pair(user_info, _(yfields[i].text), yfields[i].value);
4054 } 4053 }
4055 } 4054 }