summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2014-08-28 00:16:01 +0000
committerRichard Mudgett <rmudgett@digium.com>2014-08-28 00:16:01 +0000
commit4728c05957c755735cdffc48340e548586e3ec5f (patch)
tree531b83a5acb3b864cbf7b5ef8bde36611f82b399
parent7c1a22fba7d5832326358ddfc1b0b6baa0e755ac (diff)
sched: Fix typo and whitespace change.
........ Merged revisions 422200 from http://svn.asterisk.org/svn/asterisk/branches/13 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@422201 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--include/asterisk/sched.h2
-rw-r--r--main/sched.c7
2 files changed, 5 insertions, 4 deletions
diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h
index aac6dc82b..67dbf21ce 100644
--- a/include/asterisk/sched.h
+++ b/include/asterisk/sched.h
@@ -165,7 +165,7 @@ void ast_sched_context_destroy(struct ast_sched_context *c);
* A scheduler callback takes a pointer with callback data and
*
* \retval 0 if the callback should not be rescheduled
- * \retval non-zero if the callback should be scheduled agai
+ * \retval non-zero if the callback should be scheduled again
*/
typedef int (*ast_sched_cb)(const void *data);
#define AST_SCHED_CB(a) ((ast_sched_cb)(a))
diff --git a/main/sched.c b/main/sched.c
index 6161185e4..97e07eab5 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -496,9 +496,10 @@ int _ast_sched_del(struct ast_sched_context *con, int id, const char *file, int
ast_assert(s != NULL);
#else
{
- char buf[100];
- snprintf(buf, sizeof(buf), "s != NULL, id=%d", id);
- _ast_assert(0, buf, file, line, function);
+ char buf[100];
+
+ snprintf(buf, sizeof(buf), "s != NULL, id=%d", id);
+ _ast_assert(0, buf, file, line, function);
}
#endif
*last_id = id;