Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/networking/libiproute/rtm_map.c

    r1765 r2725  
    11/* vi: set sw=4 ts=4: */
    22/*
    3  * rtm_map.c
     3 * This program is free software; you can redistribute it and/or
     4 * modify it under the terms of the GNU General Public License
     5 * as published by the Free Software Foundation; either version
     6 * 2 of the License, or (at your option) any later version.
    47 *
    5  *      This program is free software; you can redistribute it and/or
    6  *      modify it under the terms of the GNU General Public License
    7  *      as published by the Free Software Foundation; either version
    8  *      2 of the License, or (at your option) any later version.
    9  *
    10  * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
    11  *
     8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
    129 */
    1310
     
    1613#include "utils.h"
    1714
    18 const char *rtnl_rtntype_n2a(int id, char *buf, int len)
     15const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf)
    1916{
    2017    switch (id) {
     
    4441        return "xresolve";
    4542    default:
    46         snprintf(buf, len, "%d", id);
     43        /* buf is SPRINT_BSIZE big */
     44        sprintf(buf, "%d", id);
    4745        return buf;
    4846    }
     
    5048
    5149
    52 int rtnl_rtntype_a2n(int *id, char *arg)
     50int FAST_FUNC rtnl_rtntype_a2n(int *id, char *arg)
    5351{
    5452    static const char keywords[] ALIGN1 =
     
    8987    else {
    9088        res = strtoul(arg, &end, 0);
    91         if (!end || end == arg || *end || res > 255)
     89        if (end == arg || *end || res > 255)
    9290            return -1;
    9391    }
     
    9694}
    9795
    98 int get_rt_realms(uint32_t *realms, char *arg)
     96int FAST_FUNC get_rt_realms(uint32_t *realms, char *arg)
    9997{
    10098    uint32_t realm = 0;
Note: See TracChangeset for help on using the changeset viewer.