summaryrefslogtreecommitdiff
path: root/dahdi_monitor.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2009-04-21 13:38:10 +0000
committerSean Bright <sean@malleable.com>2009-04-21 13:38:10 +0000
commite597312384e0641a995e18d687746b26a181e46a (patch)
tree1adc673ee64bd19202561f8f9e6e915a4f966b79 /dahdi_monitor.c
parent5b2bae9148b2b64556188ccacc7fdd7d9168bbef (diff)
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
Diffstat (limited to 'dahdi_monitor.c')
-rw-r--r--dahdi_monitor.c2
1 files changed, 1 insertions, 1 deletions
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)) {