]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/snmp.c
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / snmp.c
index c23a22931ede724051d9727ca10bcf0a5c0c8397..f11d9dc8cfde81fbea6b52092b282a8ab5883bf5 100644 (file)
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with GNU Zebra; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #include <zebra.h>
@@ -54,12 +53,12 @@ void *oid_copy(void *dest, const void *src, size_t size)
 void oid2in_addr(oid oid[], int len, struct in_addr *addr)
 {
        int i;
-       u_char *pnt;
+       uint8_t *pnt;
 
        if (len == 0)
                return;
 
-       pnt = (u_char *)addr;
+       pnt = (uint8_t *)addr;
 
        for (i = 0; i < len; i++)
                *pnt++ = oid[i];
@@ -68,12 +67,12 @@ void oid2in_addr(oid oid[], int len, struct in_addr *addr)
 void oid_copy_addr(oid oid[], struct in_addr *addr, int len)
 {
        int i;
-       u_char *pnt;
+       uint8_t *pnt;
 
        if (len == 0)
                return;
 
-       pnt = (u_char *)addr;
+       pnt = (uint8_t *)addr;
 
        for (i = 0; i < len; i++)
                oid[i] = *pnt++;