Check-in [34b2401d6e]
Overview
Comment:Corrected bug in "ifconfig"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 34b2401d6e8be615bf33c0eb5c7849c0108eeb9c
User & Date: rkeene on 2012-08-11 23:17:44
Other Links: manifest | tags
Context
2012-08-22
03:31
Added brctl support check-in: 3c94381d8b user: rkeene tags: trunk
2012-08-11
23:17
Corrected bug in "ifconfig" check-in: 34b2401d6e user: rkeene tags: trunk
2012-08-07
14:32
Added first stab at dietlibc build check-in: 216375cf37 user: rkeene tags: trunk
Changes

Modified initrd/admin-tclkit/kitcreator-modules/system/system.c from [0957cdeb4b] to [382721d0da].

859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
	Tcl_Obj *tcl_iface_list;
	struct ifconf ifaces_cfg;
	struct ifreq *iface_req = NULL;
	int iface_req_cnt = 224, iface_req_len;
	int idx, iface_cnt;
	int ioctl_ret, tcl_ret;

	iface_req_len = iface_req_cnt * sizeof(iface_req);
	iface_req = malloc(iface_req_len);
	if (iface_req == NULL) {
		/* Report failure */
		Tcl_SetObjResult(interp, Tcl_NewStringObj("unable to allocate memory", -1));

		return(TCL_ERROR);
	}







|







859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
	Tcl_Obj *tcl_iface_list;
	struct ifconf ifaces_cfg;
	struct ifreq *iface_req = NULL;
	int iface_req_cnt = 224, iface_req_len;
	int idx, iface_cnt;
	int ioctl_ret, tcl_ret;

	iface_req_len = iface_req_cnt * sizeof(*iface_req);
	iface_req = malloc(iface_req_len);
	if (iface_req == NULL) {
		/* Report failure */
		Tcl_SetObjResult(interp, Tcl_NewStringObj("unable to allocate memory", -1));

		return(TCL_ERROR);
	}