Changeset 4564
- Timestamp:
- 07/30/08 16:01:54 (5 years ago)
- Location:
- trunk/src/target/opkg/libopkg
- Files:
-
- 3 edited
-
pkg.c (modified) (1 diff)
-
pkg_hash.c (modified) (1 diff)
-
void_list.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/opkg/libopkg/pkg.c
r4563 r4564 1738 1738 file_hash_set_file_owner(conf, installed_file, pkg); 1739 1739 } 1740 //FIXME: mark this line. Thid avoid crash, But the reference count shall be balanced. (If there are some delay after file_hash_set_file_owner, it wont crash (Pondering why?)) 1741 //pkg_free_installed_files(pkg); 1740 pkg_free_installed_files(pkg); 1742 1741 } 1743 1742 pkg_vec_free(installed_pkgs); -
trunk/src/target/opkg/libopkg/pkg_hash.c
r4474 r4564 649 649 hash_table_insert(file_hash, file_name, owning_pkg); 650 650 if (old_owning_pkg) { 651 pkg_get_installed_files(old_owning_pkg); 651 652 str_list_remove_elt(old_owning_pkg->installed_files, file_name); 653 pkg_free_installed_files(old_owning_pkg); 652 654 /* mark this package to have its filelist written */ 653 655 old_owning_pkg->state_flag |= SF_FILELIST_CHANGED; 654 656 owning_pkg->state_flag |= SF_FILELIST_CHANGED; 657 655 658 } 656 659 return 0; -
trunk/src/target/opkg/libopkg/void_list.c
r4357 r4564 160 160 void_list_elt_t *old_elt = NULL; 161 161 void *old_data = NULL; 162 163 if (!list) { 164 fprintf(stderr, "Error: void_list_remove_elt list is NULL\n"); 165 return NULL; 166 } 167 if (!target_data) { 168 fprintf(stderr, "Error: void_list_remove_elt target_data is NULL\n"); 169 return NULL; 170 } 162 171 163 172 /* first element */
Note: See TracChangeset
for help on using the changeset viewer.
