This patch cleans up some unneeded variables I came across that were unrelated
to the changes I made (i.e., they also were not used before this set of
patches). A note on *CMPSENSETEXT[]: it's defined again further on in the
file, next to *CMPSENSEOPERAND[].
Index: cfengine-trunk/src/cf.extern.h
===================================================================
--- cfengine-trunk.orig/src/cf.extern.h
+++ cfengine-trunk/src/cf.extern.h
@@ -477,7 +477,6 @@ extern char *VEDITNAMES[];
extern char *VFILTERNAMES[];
extern char *VUNMOUNTCOMM[];
extern char *VRESOURCES[];
-extern char *CMPSENSETEXT[];
extern char *PKGMGRTEXT[];
extern char *PKGACTIONTEXT[];
Index: cfengine-trunk/src/do.c
===================================================================
--- cfengine-trunk.orig/src/do.c
+++ cfengine-trunk/src/do.c
@@ -2733,10 +2733,7 @@ void CheckPackages()
{ struct Package *ptr;
int match = 0;
- int result = 0;
char lock[CF_BUFSIZE];
- /* pkgmgr_none will always be the highest number in the enum so set
- the array size with that */
struct Item *pending_pkgs = NULL;
char *wholepackage = NULL;
enum pkgmgrs prev_pkgmgr = pkgmgr_none;
--
Eric Searcy
OSU Open Source Lab
_______________________________________________
Bug-cfengine mailing list
[email protected]
https://cfengine.org/mailman/listinfo/bug-cfengine