diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h index f9f65cfd92..993ba6b7eb 100644 --- a/include/asterisk/sched.h +++ b/include/asterisk/sched.h @@ -210,7 +210,7 @@ const void *ast_sched_find_data(struct sched_context *con, int id); * \param id ID of the scheduled item to delete * \return Returns 0 on success, -1 on failure */ -#ifndef DEVMODE +#ifndef AST_DEVMODE int ast_sched_del(struct sched_context *con, int id) attribute_warn_unused_result; #else int _ast_sched_del(struct sched_context *con, int id, const char *file, int line, const char *function) attribute_warn_unused_result; diff --git a/main/sched.c b/main/sched.c index f32cfab920..e98accc72d 100644 --- a/main/sched.c +++ b/main/sched.c @@ -334,7 +334,7 @@ const void *ast_sched_find_data(struct sched_context *con, int id) * would be two or more in the list with that * id. */ -#ifndef DEVMODE +#ifndef AST_DEVMODE int ast_sched_del(struct sched_context *con, int id) #else int _ast_sched_del(struct sched_context *con, int id, const char *file, int line, const char *function) @@ -377,7 +377,7 @@ int _ast_sched_del(struct sched_context *con, int id, const char *file, int line if (!s) { ast_debug(1, "Attempted to delete nonexistent schedule entry %d!\n", id); -#ifndef DEVMODE +#ifndef AST_DEVMODE ast_assert(s != NULL); #else _ast_assert(0, "s != NULL", file, line, function);