* Remove some unused variables
* Correct some compiler warnings * Hopefully stop Xpl.py generating Makefile carping
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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 $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user