[asterisk-bugs] [DAHDI-tools 0014893]: Incorrect construct in dahdi_monitor.c

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 21 08:38:12 CDT 2009


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14893 
====================================================================== 
Reported By:                gknispel_proformatique
Assigned To:                seanbright
====================================================================== 
Project:                    DAHDI-tools
Issue ID:                   14893
Category:                   General
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             2009-04-14 10:49 CDT
Last Modified:              2009-04-21 08:38 CDT
====================================================================== 
Summary:                    Incorrect construct in dahdi_monitor.c
Description: 
in main(), "opt" is a "char" and to parse command line arguments a "while
((opt = getopt(argc, argv, "vmol:f:r:t:s:F:R:T:S:")) != -1)" is done. This
is incorrect and won't work on architectures where char are unsigned.
Declaring "opt" as an "int" will fix the problem.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-04-21 08:38 svnbot         Status                   new => assigned     
2009-04-21 08:38 svnbot         Assigned To               => seanbright      
======================================================================




More information about the asterisk-bugs mailing list