summaryrefslogtreecommitdiff
path: root/pbx/pbx_config.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-04-23 19:13:35 +0000
committerMark Spencer <markster@digium.com>2003-04-23 19:13:35 +0000
commita71b49f405624dd3b7c32018cbc6a361f2e34b23 (patch)
treea192f508bbf212d4b1fa470f6becd6f6dc96012e /pbx/pbx_config.c
parent89e0dd94a29730cf2b08763372a2663fed707d37 (diff)
More OpenBSD patches
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@890 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/pbx_config.c')
-rwxr-xr-xpbx/pbx_config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 7e8c11c9c..45359fcdd 100755
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -689,10 +689,10 @@ static int handle_context_add_include(int fd, int argc, char *argv[])
ast_cli(fd, "Context '%s' already included in '%s' context\n",
argv[1], argv[3]); break;
- case ENODATA:
+ case ENOENT:
case EINVAL:
ast_cli(fd, "There is no existence of context '%s'\n",
- errno == ENODATA ? argv[3] : argv[1]); break;
+ errno == ENOENT ? argv[3] : argv[1]); break;
default:
ast_cli(fd, "Failed to include '%s' in '%s' context\n",
@@ -1115,7 +1115,7 @@ static int handle_context_add_extension(int fd, int argc, char *argv[])
case EBUSY:
ast_cli(fd, "Failed to lock context(s) list, please try again later\n"); break;
- case ENODATA:
+ case ENOENT:
ast_cli(fd, "No existence of '%s' context\n", argv[4]); break;
case EEXIST:
@@ -1197,7 +1197,7 @@ static int handle_context_add_ignorepat(int fd, int argc, char *argv[])
case ENOMEM:
ast_cli(fd, "Out of free memory\n"); break;
- case ENODATA:
+ case ENOENT:
ast_cli(fd, "There is no existence of '%s' context\n", argv[4]);
break;
@@ -1294,7 +1294,7 @@ static int handle_context_remove_ignorepat(int fd, int argc, char *argv[])
ast_cli(fd, "Failed to lock context(s) list, please try again later\n");
break;
- case ENODATA:
+ case ENOENT:
ast_cli(fd, "There is no existence of '%s' context\n", argv[4]);
break;