[svn-commits] rizzo: branch rizzo/astobj2 r47627 - /team/rizzo/astobj2/main/astobj2.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Nov 14 15:03:35 MST 2006


Author: rizzo
Date: Tue Nov 14 16:03:35 2006
New Revision: 47627

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47627
Log:
two missing casts


Modified:
    team/rizzo/astobj2/main/astobj2.c

Modified: team/rizzo/astobj2/main/astobj2.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/main/astobj2.c?view=diff&rev=47627&r1=47626&r2=47627
==============================================================================
--- team/rizzo/astobj2/main/astobj2.c (original)
+++ team/rizzo/astobj2/main/astobj2.c Tue Nov 14 16:03:35 2006
@@ -681,13 +681,14 @@
 	case CLI_GENERATE:
 		a = (struct ast_cli_args *)argv[0];
 		if (a->pos > e->args)	/* only extend one word */
-			return NULL;
+			return (int)NULL;
 		if (a->n < 10) {
 			char *buf;
 			asprintf(&buf, "%d", a->n);
 			return (int)buf;
 		}
-		return NULL;
+		return (int)NULL;
+
 	default:	/* regular handler */
 		/* we are guaranteed to be called with argc >= e->args; */
 		if (argc > e->args + 1)	/* we only accept one extra field */



More information about the svn-commits mailing list