[svn-commits] seanbright: tools/trunk r6420 - /tools/trunk/dahdi_monitor.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Apr 21 08:38:15 CDT 2009


Author: seanbright
Date: Tue Apr 21 08:38:10 2009
New Revision: 6420

URL: http://svn.digium.com/svn-view/dahdi?view=rev&rev=6420
Log:
Use correct return value type for getopt().

In dahdi_monitor.c, the return value of getopt() was being assigned to a char
while the function actually returns an int.  Fix suggested by reporter.

(closes issue #14893)
Reported by: gknispel_proformatique

Modified:
    tools/trunk/dahdi_monitor.c

Modified: tools/trunk/dahdi_monitor.c
URL: http://svn.digium.com/svn-view/dahdi/tools/trunk/dahdi_monitor.c?view=diff&rev=6420&r1=6419&r2=6420
==============================================================================
--- tools/trunk/dahdi_monitor.c (original)
+++ tools/trunk/dahdi_monitor.c Tue Apr 21 08:38:10 2009
@@ -278,7 +278,7 @@
 	int readcount = 0;
 	int x, chan;
 	struct dahdi_confinfo zc;
-	char opt;
+	int opt;
 	extern char *optarg;
 
 	if ((argc < 2) || (atoi(argv[1]) < 1)) {




More information about the svn-commits mailing list