Skip to contentSkip to conversation

conga ./conga.spec.in.in make/version.in ricci ...

Cluster-devel [email protected] 1 participant 1 message Jun 19, 2006

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: conga
Changes by: kupcevic at sourceware.org 2006-06-19 21:21:54

Modified files:
. : conga.spec.in.in
make : version.in
ricci/modules/cluster/clumon/src/daemon: Communicator.cpp
Communicator.h
ricci/modules/cluster/clumon/src/snmp-agent: clusterMIB.cpp
ricci/ricci : QueueLocker.cpp Ricci.cpp

Log message:

	Clean compiler warnings on x86_64, ppc64, s390

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/conga.spec.in.in.diff?cvsroot=cluster&r1=1.7&r2=1.8
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/make/version.in.diff?cvsroot=cluster&r1=1.5&r2=1.6
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/daemon/Communicator.h.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/QueueLocker.cpp.diff?cvsroot=cluster&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/conga/ricci/ricci/Ricci.cpp.diff?cvsroot=cluster&r1=1.8&r2=1.9

conga.spec.in.in +1 -1
@@ -48,7 +48,7 @@
 %setup -q
 
 %build
-./autogen.sh
+#./autogen.sh
 #./configure --arch=%{_arch} --sbindir=%{_sbindir} --libdir=%{_libdir} --docdir=%{_docdir}
 %configure --arch=%{_arch} --docdir=%{_docdir} --pegasus_providers_dir=%{PEGASUS_PROVIDERS_DIR}
 make
make/version.in +1 -1
@@ -1,2 +1,2 @@
 VERSION=0.8
-RELEASE=4.FC5
+RELEASE=5.FC6
ricci/modules/cluster/clumon/src/daemon/Communicator.cpp +8 -0
@@ -41,6 +41,14 @@
 
 
 
+CommDP::CommDP()
+{}
+
+CommDP::~CommDP()
+{}
+
+
+
 Communicator::Communicator(unsigned short port, 
 			   CommDP& delivery_point) :
   _port(port), 
ricci/modules/cluster/clumon/src/daemon/Communicator.h +3 -0
@@ -41,6 +41,9 @@
 class CommDP
 {
  public:
+  CommDP();
+  virtual ~CommDP();
+  
   virtual void msg_arrived(const std::string& host,
 			   const std::string& msg) = 0;
 };
ricci/modules/cluster/clumon/src/snmp-agent/clusterMIB.cpp +1 -1
@@ -33,7 +33,7 @@
 using namespace std;
 
 
-static unsigned int getStatusCode();
+static unsigned int getStatusCode(Cluster*);
 static string getStatusDescription(unsigned int code);
 
 
ricci/ricci/QueueLocker.cpp +4 -4
@@ -54,9 +54,9 @@
     
     // acquire flock
     int res;
-    while (res = flock(fd, LOCK_EX))
+    while ((res = flock(fd, LOCK_EX)))
       if (errno != EINTR) {
-	while (res = close(fd))
+	while ((res = close(fd)))
 	  if (errno != EINTR)
 	    throw string("unable to close the queue lock file");
 	throw string("unable to lock the queue");
@@ -72,9 +72,9 @@
   if (!--q_counter) {
     // release flock
     int res;
-    while (res = close(fd))
+    while ((res = close(fd)))
       if (errno != EINTR) {
-	while (res = flock(fd, LOCK_UN))
+	while ((res = flock(fd, LOCK_UN)))
 	  if (errno != EINTR)
 	    break; // throw string("unable to unlock the queue");
 	break; // throw string("unable to close the queue lock file");
ricci/ricci/Ricci.cpp +2 -2
@@ -295,7 +295,7 @@
 		     S_IRUSR|S_IWUSR|S_IRGRP);
   if (fd == -1)
     throw string("unable to create batch file");
-  while (res = close(fd))
+  while ((res = close(fd)))
     if (errno != EINTR)
       throw string("unable to close batch fd");
   
@@ -427,7 +427,7 @@
   if (!dir)
     throw string("unable to open queue directory");
   struct dirent* file_entry;
-  while (file_entry = readdir(dir))
+  while ((file_entry = readdir(dir)))
     try {
       string name(file_entry->d_name);
       // check name