Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/networking/libiproute/rtm_map.c
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/networking/libiproute/rtm_map.c
r1765 r2725 1 1 /* vi: set sw=4 ts=4: */ 2 2 /* 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. 4 7 * 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> 12 9 */ 13 10 … … 16 13 #include "utils.h" 17 14 18 const char *rtnl_rtntype_n2a(int id, char *buf, int len)15 const char* FAST_FUNC rtnl_rtntype_n2a(int id, char *buf) 19 16 { 20 17 switch (id) { … … 44 41 return "xresolve"; 45 42 default: 46 snprintf(buf, len, "%d", id); 43 /* buf is SPRINT_BSIZE big */ 44 sprintf(buf, "%d", id); 47 45 return buf; 48 46 } … … 50 48 51 49 52 int rtnl_rtntype_a2n(int *id, char *arg)50 int FAST_FUNC rtnl_rtntype_a2n(int *id, char *arg) 53 51 { 54 52 static const char keywords[] ALIGN1 = … … 89 87 else { 90 88 res = strtoul(arg, &end, 0); 91 if ( !end ||end == arg || *end || res > 255)89 if (end == arg || *end || res > 255) 92 90 return -1; 93 91 } … … 96 94 } 97 95 98 int get_rt_realms(uint32_t *realms, char *arg)96 int FAST_FUNC get_rt_realms(uint32_t *realms, char *arg) 99 97 { 100 98 uint32_t realm = 0;
Note:
See TracChangeset
for help on using the changeset viewer.