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 build with clang v15.0.6 [-Wdeprecated-non-prototype] #1246

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 7 additions & 16 deletions lib/snmplib/mib.c
Expand Up @@ -225,11 +225,9 @@ parse_subtree(struct snmp_mib_tree *subtree, char *input, oid *output, int *out_
return (++*out_len);
}

/// \param out_len number of subid's in "output"
int
kinkie marked this conversation as resolved.
Show resolved Hide resolved
read_objid(input, output, out_len)
char *input;
oid *output;
int *out_len; /* number of subid's in "output" */
read_objid(char *input, oid *output, int *out_len)
{
struct snmp_mib_tree *root = Mib;
oid *op = output;
Expand Down Expand Up @@ -260,10 +258,9 @@ int *out_len; /* number of subid's in "output" */
return (1);
}

/// \param objidlen number of subidentifiers
void
print_objid(objid, objidlen)
oid *objid;
int objidlen; /* number of subidentifiers */
print_objid(oid *objid, int objidlen)
{
char buf[256];
struct snmp_mib_tree *subtree = Mib;
Expand All @@ -274,11 +271,9 @@ int objidlen; /* number of subidentifiers */

}

/// \param objidlen number of subidentifiers
void
sprint_objid(buf, objid, objidlen)
char *buf;
oid *objid;
int objidlen; /* number of subidentifiers */
sprint_objid(char *buf, oid *objid, int objidlen)
{
struct snmp_mib_tree *subtree = Mib;

Expand All @@ -287,11 +282,7 @@ int objidlen; /* number of subidentifiers */
}

static struct snmp_mib_tree *
get_symbol(objid, objidlen, subtree, buf)
oid *objid;
int objidlen;
struct snmp_mib_tree *subtree;
char *buf;
get_symbol(oid *objid, int objidlen, struct snmp_mib_tree *subtree, char *buf)
{
struct snmp_mib_tree *return_tree = NULL;

Expand Down
6 changes: 1 addition & 5 deletions lib/snmplib/snmp_api.c
Expand Up @@ -103,11 +103,7 @@
* occurs, -1 is returned. If all goes well, 0 is returned.
*/
int
snmp_build(session, pdu, packet, out_length)
struct snmp_session *session;
struct snmp_pdu *pdu;
u_char *packet;
int *out_length;
snmp_build(struct snmp_session *session, struct snmp_pdu *pdu, u_char *packet, int *out_length)
{
u_char *bufp;

Expand Down