Skip to content

Commit ac688f0

Browse files
committed
change so we pass in packages
1 parent 00e7bcc commit ac688f0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

axiom/nr_php_packages.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ static inline const char* nr_php_package_source_priority_to_string(const nr_php_
3737
}
3838

3939
void nr_php_packages_set_known(nr_php_packages_t* pkgs,
40-
nr_hashmap_t* known) { /* should be CONST */
41-
if (NULL == pkgs || NULL == known) {
40+
nr_php_packages_t* known) { /* should be CONST */
41+
if (NULL == pkgs || NULL == known || NULL == known->data) {
4242
return;
4343
}
4444

4545
nrl_verbosedebug(NRL_INSTRUMENT, "Setting known PHP packages to %p", known);
4646

47-
pkgs->known_packages = known;
47+
pkgs->known_packages = known->data;
4848
}
4949

5050
nr_php_package_t* nr_php_package_create_with_source(

axiom/nr_php_packages.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef void(nr_php_packages_iter_t)(void* value,
3838
void* user_data);
3939

4040
void nr_php_packages_set_known(nr_php_packages_t* pkgs,
41-
nr_hashmap_t* known); /* should be CONST! */
41+
nr_php_packages_t* known); /* should be CONST! */
4242

4343
/*
4444
* Purpose : Create a new php package with desired source priority. If the name is null, then no package will

0 commit comments

Comments
 (0)