r25000: Fix some more C++ compatibility warnings.
[tprouty/samba.git] / source4 / lib / registry / tools / regshell.c
index 131d76fff5ccf2bd74f0d0482bb4854d1a3b4c6e..cdf688b39eb85f9c8eadc0bfb850489b097d238c 100644 (file)
@@ -262,8 +262,7 @@ static WERROR cmd_rmval(struct regshell_context *ctx, int argc, char **argv)
        return WERR_OK; 
 }
 
-static WERROR cmd_exit(struct regshell_context *ctx,
-                                                                        int argc, char **argv)
+_NORETURN_ static WERROR cmd_exit(struct regshell_context *ctx, int argc, char **argv)
 {
        exit(0);
        return WERR_OK;
@@ -275,8 +274,7 @@ static struct {
        const char *name;
        const char *alias;
        const char *help;
-       WERROR (*handle)(struct regshell_context *ctx,
-                                                                  int argc, char **argv);
+       WERROR (*handle)(struct regshell_context *ctx, int argc, char **argv);
 } regshell_cmds[] = {
        {"ck", "cd", "Change current key", cmd_ck },
        {"info", "i", "Show detailed information of a key", cmd_info },