summaryrefslogtreecommitdiffstats
path: root/rfb/Hostname.h
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2006-04-16 06:53:44 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2006-04-16 06:53:44 +0000
commitde179d4ed74239bb64d6651fd24a39bbc29bd5d1 (patch)
tree368e0c2e675f017d92ecf92da93bf1a20ef2f417 /rfb/Hostname.h
parent32d0d68a5304d7a461e9c34da1dae124a467a98a (diff)
downloadtigervnc-de179d4ed74239bb64d6651fd24a39bbc29bd5d1.tar.gz
tigervnc-de179d4ed74239bb64d6651fd24a39bbc29bd5d1.zip
The "rfb" library merged with VNC 4.1.1 code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/merge-with-vnc-4.1.1@522 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'rfb/Hostname.h')
-rw-r--r--rfb/Hostname.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/rfb/Hostname.h b/rfb/Hostname.h
index bdff474e..ebdf816f 100644
--- a/rfb/Hostname.h
+++ b/rfb/Hostname.h
@@ -1,5 +1,5 @@
-/* Copyright (C) 2002-2003 RealVNC Ltd. All Rights Reserved.
- *
+/* Copyright (C) 2002-2005 RealVNC Ltd. All Rights Reserved.
+ *
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
@@ -19,11 +19,13 @@
#ifndef __RFB_HOSTNAME_H__
#define __RFB_HOSTNAME_H__
+#include <stdlib.h>
+#include <rdr/Exception.h>
#include <rfb/util.h>
namespace rfb {
- void getHostAndPort(const char* hi, char** host, int* port, int basePort=5900) {
+ static void getHostAndPort(const char* hi, char** host, int* port, int basePort=5900) {
CharArray portBuf;
CharArray hostBuf;
if (hi[0] == '[') {