Changeset 770:27fef2ca2cf6 in freeDiameter
- Timestamp:
- Oct 30, 2011, 8:33:28 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdproto/dictionary.c
r769 r770 1969 1969 new->dict_vendors.data.vendor.vendor_name = NO_VENDOR_NAME; 1970 1970 new->dict_vendors.datastr_len = CONSTSTRLEN(NO_VENDOR_NAME); 1971 new->dict_vendors.list[0].o = NULL;/* overwrite since element is also sentinel for this list. */1971 /* new->dict_vendors.list[0].o = NULL; *//* overwrite since element is also sentinel for this list. */ 1972 1972 new->dict_vendors.dico = new; 1973 1973 … … 1977 1977 new->dict_applications.data.application.application_name = APPLICATION_0_NAME; 1978 1978 new->dict_applications.datastr_len = CONSTSTRLEN(APPLICATION_0_NAME); 1979 new->dict_applications.list[0].o = NULL;/* overwrite since since element is also sentinel for this list. */1979 /* new->dict_applications.list[0].o = NULL; *//* overwrite since since element is also sentinel for this list. */ 1980 1980 new->dict_applications.dico = new; 1981 1981 -
tests/testdict.c
r769 r770 137 137 struct dict_object * defvnd=NULL; 138 138 vendor_id_t vid = 0; 139 int first = 1; 139 140 140 141 CHECK( 0, fd_dict_getlistof(VENDOR_BY_ID, fd_g_config->cnf_dict, &sentinel)); 141 142 142 for (li = sentinel->next; li != sentinel; li = li->next) { 143 for (li = sentinel; (li != sentinel) || (first != 0); li = li->next) { 144 first = 0; 143 145 CHECK(0, fd_dict_gettype(li->o, &type)); 144 146 CHECK(DICT_VENDOR, type); 147 #if 0 148 struct dict_vendor_data data; 149 CHECK( 0, fd_dict_getval(li->o, &data) ); 150 printf("%d : %s\n", data.vendor_id, data.vendor_name); 151 #endif 145 152 } 146 153
Note: See TracChangeset
for help on using the changeset viewer.