Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong extern declaration of pidsToWatch #251

Merged
merged 1 commit into from
Mar 22, 2023
Merged

Conversation

sgtcortez
Copy link
Contributor

The bug

Since pidsToWatch was declared in the main.cpp file, compilations which uses only the headers have an undefined symbol.

I have just moved the definition to the process.cpp class, which will be included in all binaries.

Checks

I am not sure how to check to reproduce the error from #230

I have run: make & make libnethogs which compiled successfully

image

If you have another way to test the, I would be glad to learn

Copy link
Owner

@raboof raboof left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! And thanks to @DiedByDisgust for the review in #230 (comment) ;)

@raboof raboof merged commit 2497311 into raboof:main Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants