aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_oss.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-18 15:03:42 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-18 15:03:42 +0000
commit86baa1f143f2d656af546daa60e04322fb774e43 (patch)
treed3cbfebd5968b6a1cb896ae84b747c066ae3e94c /channels/chan_oss.c
parentc37360e99ec0341b2eb5909fa74793ffffb7bfee (diff)
add -Wundef to the --enable-dev-mode flags, so that mistyped macro names in #if expressions will be caught
convert various #if expressions to #ifdef for macros that may not be defined (and where the value is not important) Note: two of these changes are in bison generated files which is going to be inconvenient when they are regenerated git-svn-id: http://svn.digium.com/svn/asterisk/trunk@55329 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r--channels/chan_oss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c
index 470c4aece..d6757a636 100644
--- a/channels/chan_oss.c
+++ b/channels/chan_oss.c
@@ -1553,7 +1553,7 @@ static struct chan_oss_pvt *store_config(struct ast_config *cfg, char *ctg)
return NULL;
openit:
-#if TRYOPEN
+#ifdef TRYOPEN
if (setformat(o, O_RDWR) < 0) { /* open device */
if (option_verbose > 0) {
ast_verbose(VERBOSE_PREFIX_2 "Device %s not detected\n", ctg);