[Cleanup] Fixed some compiler warnings
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2976 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index eabe33a..cb33066 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -404,7 +404,7 @@
tv.tv_sec = 0;
tv.tv_usec = 200*1000;
select(0, 0, 0, 0, &tv);
- execlp(programName, programName, 0);
+ execlp(programName, programName, NULL);
perror("execlp"); exit(1);
}
break;
diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc
index dfa74cb..4ab9adc 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.cc
+++ b/unix/xserver/hw/vnc/XserverDesktop.cc
@@ -248,7 +248,6 @@
{
pScreen = pScreen_;
XID* ids = new XID[pScreen->maxInstalledCmaps];
- int nmaps = (*pScreen->ListInstalledColormaps)(pScreen, ids);
cmap = (ColormapPtr)LookupIDByType(ids[0], RT_COLORMAP);
delete [] ids;
}