aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-12-03 14:04:11 +0100
committerPierre Ossman <ossman@cendio.se>2014-12-03 14:04:11 +0100
commitc0ea642910cfb1f7a599b46270929646b65da03e (patch)
tree9a1a61a0fe7f11b40dd04a57f39b470f405ffc77
parent1bfbcb57d89e6a1d9a7b7287da93a3d0dc51f716 (diff)
downloadtigervnc-c0ea642910cfb1f7a599b46270929646b65da03e.tar.gz
tigervnc-c0ea642910cfb1f7a599b46270929646b65da03e.zip
Reduce symbol scope of parameter helpers
There is no need for these to be global symbols as they are only used in that file.
-rw-r--r--vncviewer/parameters.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx
index bda7818d..c975e99a 100644
--- a/vncviewer/parameters.cxx
+++ b/vncviewer/parameters.cxx
@@ -143,9 +143,9 @@ BoolParameter fullscreenSystemKeys("FullscreenSystemKeys",
StringParameter via("via", "Gateway to tunnel via", "");
#endif
-const char* IDENTIFIER_STRING = "TigerVNC Configuration file Version 1.0";
+static const char* IDENTIFIER_STRING = "TigerVNC Configuration file Version 1.0";
-VoidParameter* parameterArray[] = {
+static VoidParameter* parameterArray[] = {
#ifdef HAVE_GNUTLS
&CSecurityTLS::X509CA,
&CSecurityTLS::X509CRL,
@@ -185,7 +185,7 @@ static struct {
} replaceMap[] = {'\n', 'n',
'\r', 'r'};
-bool encodeValue(const char* val, char* dest, size_t destSize) {
+static bool encodeValue(const char* val, char* dest, size_t destSize) {
bool normalCharacter = true;
size_t pos = 0;
@@ -232,7 +232,7 @@ bool encodeValue(const char* val, char* dest, size_t destSize) {
}
-bool decodeValue(const char* val, char* dest, size_t destSize) {
+static bool decodeValue(const char* val, char* dest, size_t destSize) {
size_t pos = 0;
bool escapedCharacter = false;
@@ -277,7 +277,7 @@ bool decodeValue(const char* val, char* dest, size_t destSize) {
#ifdef _WIN32
-void setKeyString(const char *_name, const char *_value, HKEY* hKey) {
+static void setKeyString(const char *_name, const char *_value, HKEY* hKey) {
const DWORD buffersize = 256;
@@ -310,7 +310,7 @@ void setKeyString(const char *_name, const char *_value, HKEY* hKey) {
}
-void setKeyInt(const char *_name, const int _value, HKEY* hKey) {
+static void setKeyInt(const char *_name, const int _value, HKEY* hKey) {
const DWORD buffersize = 256;
wchar_t name[buffersize];
@@ -331,7 +331,7 @@ void setKeyInt(const char *_name, const int _value, HKEY* hKey) {
}
-bool getKeyString(const char* _name, char* dest, size_t destSize, HKEY* hKey) {
+static bool getKeyString(const char* _name, char* dest, size_t destSize, HKEY* hKey) {
DWORD buffersize = 256;
WCHAR value[destSize];
@@ -369,7 +369,7 @@ bool getKeyString(const char* _name, char* dest, size_t destSize, HKEY* hKey) {
}
-bool getKeyInt(const char* _name, int* dest, HKEY* hKey) {
+static bool getKeyInt(const char* _name, int* dest, HKEY* hKey) {
const DWORD buffersize = 256;
DWORD dwordsize = sizeof(DWORD);
@@ -398,7 +398,7 @@ bool getKeyInt(const char* _name, int* dest, HKEY* hKey) {
}
-void saveToReg(const char* servername) {
+static void saveToReg(const char* servername) {
HKEY hKey;
@@ -433,7 +433,7 @@ void saveToReg(const char* servername) {
}
-char* loadFromReg() {
+static char* loadFromReg() {
HKEY hKey;