[asterisk-commits] rizzo: trunk r47630 - /trunk/main/cli.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Nov 14 15:08:20 MST 2006


Author: rizzo
Date: Tue Nov 14 16:08:20 2006
New Revision: 47630

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47630
Log:
add missing casts and remove an unused function.


Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=47630&r1=47629&r2=47630
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Tue Nov 14 16:08:20 2006
@@ -193,7 +193,7 @@
 	case CLI_GENERATE:
 		a = (struct ast_cli_args *)argv[0];
 		if (a->pos > e->args)
-			return NULL;
+			return (int)NULL;
 		return (int)ast_cli_complete(a->word, choices, a->n);
 	}
 	/* all the above return, so we proceed with the handler.
@@ -255,7 +255,7 @@
 	case CLI_GENERATE:
 		a = (struct ast_cli_args *)argv[0];
 		if (a->pos > e->args)
-			return NULL;
+			return (int)NULL;
 		return (int)ast_cli_complete(a->word, choices, a->n);
 	}
 	/* all the above return, so we proceed with the handler.
@@ -302,20 +302,6 @@
 		}
 	}
 
-	return RESULT_SUCCESS;
-}
-
-static int handle_nodebug(int fd, int argc, char *argv[])
-{
-	int oldval = option_debug;
-	if (argc != 4)
-		return RESULT_SHOWUSAGE;
-
-	option_debug = 0;
-	debug_filename[0] = '\0';
-
-	if (oldval > 0)
-		ast_cli(fd, "Core debug is now OFF\n");
 	return RESULT_SUCCESS;
 }
 



More information about the asterisk-commits mailing list