From: Simon Wilkinson Date: Mon, 25 Feb 2013 10:32:22 +0000 (+0000) Subject: bucoord: Remove dead assignments in cmd init X-Git-Tag: upstream/1.8.0_pre1^2~1421 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=2d4c9c08ea6e61c40df482d5aa2e1413179f6b94;p=packages%2Fo%2Fopenafs.git bucoord: Remove dead assignments in cmd init Don't assign command syntax objects to 'ts' if we're not going to add any parameters to them Change-Id: I69f6e090fc115ab213c1f20dc46da81f2878e0a3 Reviewed-on: http://gerrit.openafs.org/9260 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Jeffrey Altman --- diff --git a/src/bucoord/main.c b/src/bucoord/main.c index 414aa1f80..c521b5cc6 100644 --- a/src/bucoord/main.c +++ b/src/bucoord/main.c @@ -525,7 +525,7 @@ main(int argc, char **argv) if (!interact) add_std_args(ts); - ts = cmd_CreateSyntax("quit", bc_QuitCmd, NULL, "leave the program"); + cmd_CreateSyntax("quit", bc_QuitCmd, NULL, "leave the program"); ts = cmd_CreateSyntax("volsetrestore", bc_VolsetRestoreCmd, NULL, "restore a set of volumes"); @@ -562,7 +562,7 @@ main(int argc, char **argv) if (!interact) add_std_args(ts); - ts = cmd_CreateSyntax("jobs", bc_JobsCmd, NULL, "list running jobs"); + cmd_CreateSyntax("jobs", bc_JobsCmd, NULL, "list running jobs"); ts = cmd_CreateSyntax("kill", bc_KillCmd, NULL, "kill running job"); cmd_AddParm(ts, "-id", CMD_SINGLE, CMD_REQUIRED,