* 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>
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];
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++;