Properly move these functions over to the funcs directory (since they no longer conta...
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 Dec 2005 19:05:41 +0000 (19:05 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 15 Dec 2005 19:05:41 +0000 (19:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7496 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/Makefile
funcs/func_cut.c [moved from apps/app_cut.c with 98% similarity]

index 841977b..28ce6d8 100644 (file)
@@ -24,8 +24,7 @@ APPS=app_adsiprog.so app_alarmreceiver.so app_authenticate.so app_cdr.so       \
      app_setcdruserfield.so app_settransfercapability.so app_softhangup.so     \
      app_stack.so app_system.so app_talkdetect.so app_test.so app_transfer.so  \
      app_userevent.so app_url.so app_verbose.so app_voicemail.so               \
-     app_waitforring.so app_waitforsilence.so app_while.so app_zapateller.so   \
-        app_cut.so
+     app_waitforring.so app_waitforsilence.so app_while.so app_zapateller.so
      
 #
 # Obsolete things...
similarity index 98%
rename from apps/app_cut.c
rename to funcs/func_cut.c
index 6922fc3..f070221 100644 (file)
@@ -16,9 +16,9 @@
  */
 
 /*! \file
- * \brief Cut application
+ * \brief CUT function
  *
- * \ingroup applications
+ * \ingroup functions
  */
 
 #include <stdio.h>
@@ -269,7 +269,7 @@ static char *acf_cut_exec(struct ast_channel *chan, char *cmd, char *data, char
                ast_log(LOG_ERROR, "Out of memory\n");
                break;
        case ERROR_USAGE:
-               ast_log(LOG_ERROR, "Usage: %s\n", cut_synopsis);
+               ast_log(LOG_ERROR, "Usage: CUT(<varname>,<char-delim>,<range-spec>)\n");
                break;
        case 0:
                break;