From e597312384e0641a995e18d687746b26a181e46a Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 21 Apr 2009 13:38:10 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6420 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- dahdi_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dahdi_monitor.c b/dahdi_monitor.c index 8ec60c4..9af992f 100644 --- a/dahdi_monitor.c +++ b/dahdi_monitor.c @@ -278,7 +278,7 @@ int main(int argc, char *argv[]) int readcount = 0; int x, chan; struct dahdi_confinfo zc; - char opt; + int opt; extern char *optarg; if ((argc < 2) || (atoi(argv[1]) < 1)) { -- cgit v1.2.3