Skip to content

Commit

Permalink
chore(agent): format code
Browse files Browse the repository at this point in the history
  • Loading branch information
hahuja2 committed Dec 1, 2023
1 parent 2ccfc26 commit 9868059
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions agent/php_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,13 @@ typedef struct _nr_vuln_mgmt_table_t {

/* Note that all paths should be in lowercase. */
static const nr_vuln_mgmt_table_t vuln_mgmt_packages[] = {
{"Drupal", "core/lib/drupal.php", nr_drupal_version},
{"PHPUnit", "runner/version.php", nr_phpunit_version},
{"Wordpress", "wp-includes/version.php", nr_wordpress_version},
{"Drupal", "core/lib/drupal.php", nr_drupal_version},
{"PHPUnit", "runner/version.php", nr_phpunit_version},
{"Wordpress", "wp-includes/version.php", nr_wordpress_version},
};

static size_t num_packages = sizeof(vuln_mgmt_packages) / sizeof(nr_vuln_mgmt_table_t);
static size_t num_packages
= sizeof(vuln_mgmt_packages) / sizeof(nr_vuln_mgmt_table_t);

/*
* Framework handling, definition and callbacks.
Expand Down Expand Up @@ -915,7 +916,7 @@ static void nr_execute_handle_library(const char* filename TSRMLS_DC) {
static void nr_execute_handle_package(const char* filename TSRMLS_DC) {
char* filename_lower = nr_string_to_lowercase(filename);
size_t i = 0;

for (i = 0; i < num_packages; i++) {
if (nr_stridx(filename_lower, vuln_mgmt_packages[i].file_to_check) >= 0) {
if (NULL != vuln_mgmt_packages[i].enable) {
Expand Down

0 comments on commit 9868059

Please sign in to comment.