[asterisk-bugs] [Asterisk 0014264]: compilation warning for main/editline/history

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Jan 19 15:20:54 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14264 
====================================================================== 
Reported By:                dimas
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14264
Category:                   General
Reproducibility:            have not tried
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 168729 
Request Review:              
====================================================================== 
Date Submitted:             2009-01-17 06:07 CST
Last Modified:              2009-01-19 15:20 CST
====================================================================== 
Summary:                    compilation warning for main/editline/history
Description: 
While building Asterisk I noticed:

history.c: In function 'history_def_add':
history.c:352: warning: implicit declaration of function 'strlcpy'
history.c:353: warning: implicit declaration of function 'strlcat'
   [CC] hash/hash.c -> hash/hash.o

I'm not sure if it affects anything but not having warnings during
compilation is definitely the Good Thing.
====================================================================== 

---------------------------------------------------------------------- 
 (0098152) jamesgolovich (manager) - 2009-01-19 15:20
 http://bugs.digium.com/view.php?id=14264#c98152 
---------------------------------------------------------------------- 
Here's a patch that gets rid of the warning.  Since asterisk is providing
the strlcat and strlcpy functions we just needed to get the right header in
there 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-19 15:20 jamesgolovich  Note Added: 0098152                          
======================================================================




More information about the asterisk-bugs mailing list