channel: Clear channel flag in error branch.
[asterisk/asterisk.git] / funcs / func_hangupcause.c
index d85c54e..2b4f9c5 100644 (file)
@@ -33,8 +33,6 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
 #include "asterisk/module.h"
 #include "asterisk/channel.h"
 #include "asterisk/pbx.h"
@@ -48,7 +46,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
                </synopsis>
                <syntax>
                        <parameter name="channel" required="true">
-                               <para>The name of the channel for which to retreive cause information.</para>
+                               <para>The name of the channel for which to retrieve cause information.</para>
                        </parameter>
                        <parameter name="type" required="true">
                                <para>Parameter describing which type of information is requested. Types are:</para>
@@ -128,7 +126,7 @@ static int hangupcause_read(struct ast_channel *chan, const char *cmd, char *dat
        AST_STANDARD_APP_ARGS(args, parms);
        if (args.argc != 2) {
                /* Must have two arguments. */
-               ast_log(LOG_WARNING, "The HANGUPCAUSE function must have 2 parameters, not %d\n", args.argc);
+               ast_log(LOG_WARNING, "The HANGUPCAUSE function must have 2 parameters, not %u\n", args.argc);
                return -1;
        }