bsnmpmap.c (e1d581b289848ffa97c452756dc52d45efb68a01) | bsnmpmap.c (8b223768d19d2b0f0d544daf81553c2cb7293f10) |
---|---|
1/*- 2 * Copyright (c) 2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Shteryana Shopova <syrinx@FreeBSD.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 274 unchanged lines hidden (view full) --- 283 284 return (1); 285 286} 287 288/* 289 * Insert an entry in a list - entries are lexicographicaly order by asn_oid. 290 * Returns 1 on success, -1 if list is not initialized, 0 if a matching oid already | 1/*- 2 * Copyright (c) 2006 The FreeBSD Project 3 * All rights reserved. 4 * 5 * Author: Shteryana Shopova <syrinx@FreeBSD.org> 6 * 7 * Redistribution of this software and documentation and use in source and 8 * binary forms, with or without modification, are permitted provided that --- 274 unchanged lines hidden (view full) --- 283 284 return (1); 285 286} 287 288/* 289 * Insert an entry in a list - entries are lexicographicaly order by asn_oid. 290 * Returns 1 on success, -1 if list is not initialized, 0 if a matching oid already |
291 * exists. Error cheking is left to calling function. | 291 * exists. Error checking is left to calling function. |
292 */ 293static int 294snmp_mapping_insert(struct snmp_mapping *headp, struct snmp_oid2str *entry) 295{ 296 int32_t rc; 297 struct snmp_oid2str *temp, *prev; 298 299 if (entry == NULL) --- 710 unchanged lines hidden --- | 292 */ 293static int 294snmp_mapping_insert(struct snmp_mapping *headp, struct snmp_oid2str *entry) 295{ 296 int32_t rc; 297 struct snmp_oid2str *temp, *prev; 298 299 if (entry == NULL) --- 710 unchanged lines hidden --- |