Skip to content

Conversation

RincewindsHat
Copy link
Member

No description provided.

RincewindsHat and others added 21 commits January 28, 2023 12:50
This commit creates a configuration struct with all the parameters
give by a users.
The global variables, previously used, were removed and some function
calls had to be adapted.

Also removes some conditionals which were always true.

Also removes "pig booleans" and replaces them with proper types
to have more context and better readability in the code.
This commit puts the main function in a separate check_interfaces.c
to make it more obvious what happens.
The code is now (badly) separated from snmp_bulkget.c and needs further
logical separation

configure.ac is enhanced with this commit and the Makefile generation
is now done from a Makefile.am, so the Makefile.in in this repository
is theoretically obsolete.

Some other (for now empty) files in here are just generated to satisfy
the needs of the autoconf toolchain
@martialblog
Copy link
Member

Very nice work!

Copy link
Member

@mocdaniel mocdaniel left a comment

Choose a reason for hiding this comment

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

Looks good to me, too.

@RincewindsHat RincewindsHat merged commit 3cdbce9 into master Mar 21, 2023
@RincewindsHat RincewindsHat deleted the refactorign branch March 21, 2023 09:18
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.

3 participants