[Xorp-cvs] XORP cvs commit: xorp/rtrmgr
Pavlin Radoslavov
pavlin@icir.org
Wed, 21 Dec 2005 20:27:39 GMT
CVSROOT: /usr/local/share/doc/apache/cvs
Module name: xorp
Changes by: pavlin@xorpc.icir.org 2005-12-21 20:27:39 UTC
XORP CVS repository
Modified files:
rtrmgr conf_tree_node.cc template_base_command.cc
template_tree_node.cc
Log message:
Replace atoi(str) with strtoll(str, (char **)NULL, 10)
everywhere we deal with large numbers that should cover
both i32 and u32.
This fixes a bug starting OSPF on amd64, because
atoi("4294967295") to int64_t on FreeBSD-6.0+amd64 results to -1.
Bug found by: Atanu Ghosh
Revision Changes Path
1.105 +9 -9; commitid: fbf43a9ba1a7ea6; xorp/rtrmgr/conf_tree_node.cc
1.17 +4 -4; commitid: fbf43a9ba1a7ea6; xorp/rtrmgr/template_base_command.cc
1.71 +4 -4; commitid: fbf43a9ba1a7ea6; xorp/rtrmgr/template_tree_node.cc