Skip to content
Snippets Groups Projects
Commit 75a8b129 authored by Danny Auble's avatar Danny Auble
Browse files

moved variables out of the extern "C" wrap

parent 76c6d2d9
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,6 @@ void *acct_db_conn = NULL; ...@@ -58,8 +58,6 @@ void *acct_db_conn = NULL;
char *slurmctld_cluster_name = NULL; char *slurmctld_cluster_name = NULL;
slurmdb_cluster_rec_t *working_cluster_rec = NULL; slurmdb_cluster_rec_t *working_cluster_rec = NULL;
extern "C" {
/* In C++ const objects have internal linkage by default so we have to /* In C++ const objects have internal linkage by default so we have to
* do an extra extern here to make them export correctly. * do an extra extern here to make them export correctly.
*/ */
...@@ -68,6 +66,8 @@ extern const char plugin_type[] = "select/bgq"; ...@@ -68,6 +66,8 @@ extern const char plugin_type[] = "select/bgq";
extern const uint32_t plugin_id = 103; extern const uint32_t plugin_id = 103;
extern const uint32_t plugin_version = 100; extern const uint32_t plugin_version = 100;
extern "C" {
/* /*
* init() is called when the plugin is loaded, before any other functions * init() is called when the plugin is loaded, before any other functions
* are called. Put global initialization here. * are called. Put global initialization here.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment