Skip to content

Commit

Permalink
Merge pull request #251 from sgtcortez/main
Browse files Browse the repository at this point in the history
Fix wrong extern declaration of pidsToWatch
  • Loading branch information
raboof authored Mar 22, 2023
2 parents 8f43d02 + c55a10b commit 2497311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
static std::pair<int, int> self_pipe = std::make_pair(-1, -1);
static time_t last_refresh_time = 0;

std::set<pid_t> pidsToWatch;
extern std::set<pid_t> pidsToWatch;

// selectable file descriptors for the main loop
static fd_set pc_loop_fd_set;
Expand Down
2 changes: 1 addition & 1 deletion src/process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Process *unknownudp;
Process *unknownip;
ProcList *processes;

extern std::set<pid_t> pidsToWatch;
std::set<pid_t> pidsToWatch;

#define KB (1UL << 10)
#define MB (1UL << 20)
Expand Down

0 comments on commit 2497311

Please sign in to comment.