#263 closed defect (fixed)

htons/htonl implicit declaration

Reported by: Ralf Corsepius Owned by: Eric Norum
Priority: highest Milestone: 2
Component: network/legacy Version: unknown
Severity: critical Keywords:
Cc: bugs@…, joel.sherrill@… Blocked By:
Blocking:

Description

Build libnetworking emits man warning about implicit declarations of htons/htonl

m68k-rtems-gcc --pipe -isystem ../../../../../ods68302/lib/include -DNOPOLL -DNOSELECT -O4 -fomit-frame-pointer -g -Wall -m68302 -o o-optimize/tftpDriver.o -c ../../../../../../../../rtems.work/c/src/../../cpukit/libnetworking/lib/tftpDriver.c
../../../../../../../../rtems.work/cpukit/libnetworking/lib/tftpDriver.c: In function `tftpErrno':
../../../../../../../../rtems.work/cpukit/libnetworking/lib/tftpDriver.c:277: warning: implicit declaration of function `ntohs'
../../../../../../../../rtems.work/cpukit/libnetworking/lib/tftpDriver.c: In function `sendStifle':
../../../../../../../../rtems.work/cpukit/libnetworking/lib/tftpDriver.c:300: warning: implicit declaration of function `htons'

As htons and htonl can be macros, these warnings can not be disgarded.

I don't recall having seen these warning with older RTEMS and gcc-toolchains, so I am inclined to blame the recent changes to machine/*.h for it.

Release:
RTEMS-CVS

Attachments (1)

pr263.diff (1.2 KB) - added by Ralf Corsepius on Dec 3, 2006 at 1:31:12 PM.
pr263.diff

Download all attachments as: .zip

Change History (2)

comment:1 Changed on Aug 7, 2002 at 2:37:28 PM by Joel Sherrill

Status: assignedclosed

State-Changed-From-To: open->closed
State-Changed-Why: Patch attached. Thanks for spotting this.

Changed on Dec 3, 2006 at 1:31:12 PM by Ralf Corsepius

Attachment: pr263.diff added

pr263.diff

Note: See TracTickets for help on using tickets.