From c8ceb9c9c5712a970aa70192c7800fc9e1e39aed Mon Sep 17 00:00:00 2001 From: markster Date: Wed, 23 Apr 2003 19:13:35 +0000 Subject: More OpenBSD patches git-svn-id: http://svn.digium.com/svn/asterisk/trunk@890 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'pbx.c') diff --git a/pbx.c b/pbx.c index 18e6eb41d..c8abb1ea8 100755 --- a/pbx.c +++ b/pbx.c @@ -2684,7 +2684,7 @@ struct ast_context *ast_context_create(char *name, char *registrar) /* * errno values * EBUSY - can't lock - * ENODATA - no existence of context + * ENOENT - no existence of context */ int ast_context_add_include(char *context, char *include, char *registrar) { @@ -2710,7 +2710,7 @@ int ast_context_add_include(char *context, char *include, char *registrar) /* we can't find the right context */ ast_unlock_contexts(); - errno = ENODATA; + errno = ENOENT; return -1; } @@ -3035,7 +3035,7 @@ int ast_context_add_include2(struct ast_context *con, char *value, /* * errno values * EBUSY - can't lock - * ENODATA - no existence of context + * ENOENT - no existence of context */ int ast_context_add_switch(char *context, char *sw, char *data, char *registrar) { @@ -3061,7 +3061,7 @@ int ast_context_add_switch(char *context, char *sw, char *data, char *registrar) /* we can't find the right context */ ast_unlock_contexts(); - errno = ENODATA; + errno = ENOENT; return -1; } @@ -3129,7 +3129,7 @@ int ast_context_add_switch2(struct ast_context *con, char *value, /* * EBUSY - can't lock - * ENODATA - there is not context existence + * ENOENT - there is not context existence */ int ast_context_remove_ignorepat(char *context, char *ignorepat, char *registrar) { @@ -3151,7 +3151,7 @@ int ast_context_remove_ignorepat(char *context, char *ignorepat, char *registrar } ast_unlock_contexts(); - errno = ENODATA; + errno = ENOENT; return -1; } @@ -3188,7 +3188,7 @@ int ast_context_remove_ignorepat2(struct ast_context *con, char *ignorepat, char /* * EBUSY - can't lock - * ENODATA - there is no existence of context + * ENOENT - there is no existence of context */ int ast_context_add_ignorepat(char *con, char *value, char *registrar) { @@ -3210,7 +3210,7 @@ int ast_context_add_ignorepat(char *con, char *value, char *registrar) } ast_unlock_contexts(); - errno = ENODATA; + errno = ENOENT; return -1; } @@ -3266,7 +3266,7 @@ int ast_ignore_pattern(char *context, char *pattern) /* * EBUSY - can't lock - * ENODATA - no existence of context + * ENOENT - no existence of context * */ int ast_add_extension(char *context, int replace, char *extension, int priority, char *callerid, @@ -3291,7 +3291,7 @@ int ast_add_extension(char *context, int replace, char *extension, int priority, } ast_unlock_contexts(); - errno = ENODATA; + errno = ENOENT; return -1; } -- cgit v1.2.3