[asterisk-bugs] [Asterisk 0011219]: [patch] Avoid including not needed header files or already included.
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Nov 13 02:30:25 CST 2007
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11219
======================================================================
Reported By: eliel
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 11219
Category: Core-General
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 89185
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 11-12-2007 11:55 CST
Last Modified: 11-13-2007 02:30 CST
======================================================================
Summary: [patch] Avoid including not needed header files or
already included.
Description:
This is only a code cleanup no "include <*.h>" was added their were only
removed the ones that weren't needed because their weren't used or because
their were included on another header.
======================================================================
----------------------------------------------------------------------
ys - 11-13-07 02:30
----------------------------------------------------------------------
incude2.patch
FreeBSD 6.2:
gcc -o res_agi.o -c res_agi.c -D_THREAD_SAFE -pthread
-I/usr/home/asterisk/src/asterisk/include -pipe -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -g3 -include
/usr/home/asterisk/src/asterisk/include/asterisk/autoconfig.h
-I/usr/local/include -march=i386 -include
/usr/home/asterisk/src/asterisk/include/asterisk/astmm.h -fPIC
-DAST_MODULE=\"res_agi\" -MMD -MT res_agi.o -MF .res_agi.o.d -MP
res_agi.c: In function `launch_netscript':
res_agi.c:173: warning: implicit declaration of function `socket'
res_agi.c:173: error: `AF_INET' undeclared (first use in this function)
res_agi.c:173: error: (Each undeclared identifier is reported only once
res_agi.c:173: error: for each function it appears in.)
res_agi.c:173: error: `SOCK_STREAM' undeclared (first use in this
function)
res_agi.c:191: warning: implicit declaration of function `connect'
gmake[1]: *** [res_agi.o] Error 1
gmake: *** [res] Error 2
Issue History
Date Modified Username Field Change
======================================================================
11-13-07 02:30 ys Note Added: 0073565
======================================================================
More information about the asterisk-bugs
mailing list