Date: Mon, 17 Jun 2002 14:37:16 -0700 (PDT) From: Dave Earp <morbiddk@insensible.net> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/39442: double define in ng_pppoe.c Message-ID: <200206172137.g5HLbG1q067279@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 39442 >Category: kern >Synopsis: double define in ng_pppoe.c >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 17 14:40:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dave Earp >Release: 4.6 >Organization: N/A >Environment: FreeBSD limpid 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 >Description: There appears to be a double define of the send_sessionid variable in netgraph/ng_pppoe.c for 4.6-STABLE The following is defined two times in a row beginning line 841: static int send_sessionid(sessp sp) { int error; struct ng_mesg *msg; NG_MKMESSAGE(msg, NGM_PPPOE_COOKIE, NGM_PPPOE_SESSIONID, sizeof(u_int16_t), M_NOWAIT); if (msg == NULL) return (ENOMEM); *(u_int16_t *)msg->data = sp->Session_ID; error = ng_send_msg(sp->hook->node, msg, sp->creator, NULL); return (error); } This results in a build error when building the -STABLE kernel >How-To-Repeat: >Fix: Removed one define of the variable fixed this issue for me. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206172137.g5HLbG1q067279>