* Remove some unused variables

* Correct some compiler warnings
* Hopefully stop Xpl.py generating Makefile carping
This commit is contained in:
alexhudson
2007-09-21 17:54:32 +00:00
parent 3d9640d3cb
commit 22aa4d5404
4 changed files with 5 additions and 22 deletions
+4 -16
View File
@@ -28,8 +28,7 @@
#define CRASH_WINDOW 10
typedef struct {
const char *program;
const char *dn;
char *program;
int priority;
BOOL willCallback;
} BongoAgentSpec;
@@ -420,7 +419,7 @@ Lock(BOOL force)
exit(1);
}
remaining = snprintf(pidstr, sizeof(pidstr), "%ld\n", pid);
remaining = snprintf(pidstr, sizeof(pidstr), "%ld\n", (long int)pid);
ret = 0;
written = 0;
@@ -568,20 +567,10 @@ ParseArgs(int argc, char **argv,
static int
StartSlapd(BOOL killExisting)
{
int status = 0;
int err;
char buf[101]; // FIXME: REMOVE-MDB this was some maximum
char url[101];
int err = 0;
char *host = "127.0.0.1";
int port = 0;
pid_t pid = 0;
int sockfd = 0;
struct sockaddr_in serv_addr;
struct hostent* host_info;
long host_addr;
/* Get rid of an existing managed-slapd processs */
pid = ReadPid(SLAPD_LOCKFILE);
@@ -597,7 +586,7 @@ StartSlapd(BOOL killExisting)
return 1;
}
} else {
fprintf(stderr, _("bongo-manager: managed-slapd appears to be running as pid %ld\n"), pid);
fprintf(stderr, _("bongo-manager: managed-slapd appears to be running as pid %ld\n"), (long int)pid);
fprintf(stderr, _("bongo-manager: if this is definitely the bongo slapd, you can run with -e to kill it\n"));
return 1;
}
@@ -773,7 +762,6 @@ main(int argc, char **argv)
BOOL reload;
BOOL slapdOnly;
BOOL killExistingSlapd;
char buf[CONN_BUFSIZE];
BOOL droppedPrivs = FALSE;
BOOL unlockFile = FALSE;
BOOL startLdap = FALSE;
+1 -1
View File
@@ -97,7 +97,7 @@ main (int argc, char *argv[])
}
response = MemMalloc(sizeof(char) * 1000);
if (! NMAPAuthenticate(nmap, response, 1000)) {
if (! NMAPAuthenticateToQueue(nmap, response, 1000)) {
FatalError(1, "cannot authenticate with NMAP.");
}
MemFree(response);
-2
View File
@@ -61,7 +61,6 @@ int
main(int argc, char *argv[]) {
int next_arg = 0;
int command = 0;
int startup = 0;
if (!MemoryManagerOpen("bongo-testtool")) {
XplConsolePrintf(_("ERROR: Failed to initialize memory manager\n"));
@@ -70,7 +69,6 @@ main(int argc, char *argv[]) {
// parse options
while (++next_arg < argc && argv[next_arg][0] == '-') {
char *arg = argv[next_arg];
printf(_("Unrecognized option: %s\n"), argv[next_arg]);
}
-3
View File
@@ -151,9 +151,6 @@ CLEANFILES += \
src/libs/python/bongo/nmap/*.pyc \
src/libs/python/bongoy/store/*.pyc
src/libs/python/bongo/Xpl.py: $(top_builddir)/config.status $(srcdir)/src/libs/python/bongo/Xpl.py.in
cd $(top_builddir) && $(SHELL) ./config.status $@
src/libs/python/bongo-python-wrapper: $(top_builddir)/config.status $(srcdir)/src/libs/python/bongo-python-wrapper.in
cd $(top_builddir) && $(SHELL) ./config.status $@