Sfoglia il codice sorgente

dpkg-statoverride: Fix bogus arguments in ACTION macros

Remove bogus short options and use more appropriate act_ values for each
action.
Guillem Jover 16 anni fa
parent
commit
4b13dfcdbe
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/statcmd.c

+ 3 - 3
src/statcmd.c

@@ -397,9 +397,9 @@ statoverride_list(const char *const *argv)
  { longopt, shortopt, 0, 0, 0, setaction, code, 0, (voidfnp)function }
 
 static const struct cmdinfo cmdinfos[] = {
-	ACTION("add",    'L', act_listfiles,  statoverride_add),
-	ACTION("remove", 's', act_status,     statoverride_remove),
-	ACTION("list",   'p', act_printavail, statoverride_list),
+	ACTION("add",    0, act_install,   statoverride_add),
+	ACTION("remove", 0, act_remove,    statoverride_remove),
+	ACTION("list",   0, act_listfiles, statoverride_list),
 
 	{ "admindir",   0,   1,  NULL,         &admindir, NULL          },
 	{ "quiet",      0,   0,  &opt_verbose, NULL,      NULL, 0       },