Skip site navigation (1) Skip section navigation (2)

SVN Commit by dpage: r4228 - trunk/pgadmin3/xtra/pgagent

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4228 - trunk/pgadmin3/xtra/pgagent
Date: 2005-05-20 15:44:01
Message-ID: 200505201544.j4KFi1Kp026180@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: dpage
Date: 2005-05-20 16:44:01 +0100 (Fri, 20 May 2005)
New Revision: 4228

Modified:
   trunk/pgadmin3/xtra/pgagent/unix.cpp
Log:
GCC warnings

Modified: trunk/pgadmin3/xtra/pgagent/unix.cpp
===================================================================
--- trunk/pgadmin3/xtra/pgagent/unix.cpp	2005-05-20 15:36:20 UTC (rev 4227)
+++ trunk/pgadmin3/xtra/pgagent/unix.cpp	2005-05-20 15:44:01 UTC (rev 4228)
@@ -19,11 +19,11 @@
 
 void usage()
 {
-    wxPrintf(_("Usage:\n"));
-    wxPrintf(_("pgAgent INSTALL [options] <connect-string>\n"));
-    wxPrintf(_("options:\n"));
-    wxPrintf(_("-t <poll time interval in seconds (default 10)>\n"));
-    wxPrintf(_("-r <retry period after connection abort in seconds (>=10, default 30)>\n"));
+    wxPrintf(_("Usage:\n"));
+    wxPrintf(_("pgAgent INSTALL [options] <connect-string>\n"));
+    wxPrintf(_("options:\n"));
+    wxPrintf(_("-t <poll time interval in seconds (default 10)>\n"));
+    wxPrintf(_("-r <retry period after connection abort in seconds (>=10, default 30)>\n"));
     wxPrintf(_("-l <logging verbosity (ERROR=0, WARNING=1, DEBUG=2, default 0)>\n"));
 }
 
@@ -33,14 +33,14 @@
     {
         case LOG_DEBUG:
             if (minLogLevel >= LOG_DEBUG)
-                wxPrintf(_("DEBUG: %s\n"), msg);
+                wxPrintf(_("DEBUG: %s\n"), msg.c_str());
             break;
         case LOG_WARNING:
             if (minLogLevel >= LOG_WARNING)
-                wxPrintf(_("WARNING: %s\n"), msg);
+                wxPrintf(_("WARNING: %s\n"), msg.c_str());
             break;
         case LOG_ERROR:
-            wxPrintf(_("ERROR: %s\n"), msg);
+            wxPrintf(_("ERROR: %s\n"), msg.c_str());
             exit(1);
             break;
     }
@@ -72,9 +72,9 @@
 }
 
 int main(int argc, char **argv)
-{
-	// Statup wx
-	wxInitialize();
+{
+	// Statup wx
+	wxInitialize();
     
     if (argc < 2)
     {


pgadmin-hackers by date

Next:From: Florian G. PflugDate: 2005-05-20 16:42:30
Subject: Re: pgAdmin3.app library problem
Previous:From: Jyrki WahlstedtDate: 2005-05-20 15:30:23
Subject: Re: pgAdmin3.app library problem

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group