summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2013-08-15 22:04:05 +0900
committerTakeshi Abe <tabe@fixedpoint.jp>2013-08-15 22:09:58 +0900
commit7ef72aefc6f1bf522e0c3f9f2afda5ff7851e35e (patch)
treeeb51b70e78012113d274e3bedc67b6ebc7101c00 /sal
parentsw: fix more clang tinderbox warnings (diff)
downloadcore-7ef72aefc6f1bf522e0c3f9f2afda5ff7851e35e.tar.gz
core-7ef72aefc6f1bf522e0c3f9f2afda5ff7851e35e.zip
Mark as const
Change-Id: Ic7ee570935b5d827dc01a483877ea5021da5abea
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/socket.c16
-rw-r--r--sal/rtl/locale.cxx2
2 files changed, 9 insertions, 9 deletions
diff --git a/sal/osl/unx/socket.c b/sal/osl/unx/socket.c
index d2e928dec7af..1d51f3805d59 100644
--- a/sal/osl/unx/socket.c
+++ b/sal/osl/unx/socket.c
@@ -97,7 +97,7 @@
/*****************************************************************************/
/* map */
-static unsigned long FamilyMap[]= {
+static const unsigned long FamilyMap[]= {
AF_INET, /* osl_Socket_FamilyInet */
AF_IPX, /* osl_Socket_FamilyIpx */
0 /* osl_Socket_FamilyInvalid */
@@ -127,7 +127,7 @@ static oslAddrFamily osl_AddrFamilyFromNative(sal_uInt32 nativeType)
/*****************************************************************************/
/* map */
-static sal_uInt32 ProtocolMap[]= {
+static const sal_uInt32 ProtocolMap[]= {
0, /* osl_Socket_ProtocolIp */
NSPROTO_IPX, /* osl_Socket_ProtocolIpx */
NSPROTO_SPX, /* osl_Socket_ProtocolSpx */
@@ -161,7 +161,7 @@ static oslProtocol osl_ProtocolFromNative(sal_uInt32 nativeType)
/*****************************************************************************/
/* map */
-static sal_uInt32 TypeMap[]= {
+static const sal_uInt32 TypeMap[]= {
SOCK_STREAM, /* osl_Socket_TypeStream */
SOCK_DGRAM, /* osl_Socket_TypeDgram */
SOCK_RAW, /* osl_Socket_TypeRaw */
@@ -195,7 +195,7 @@ static oslSocketType osl_SocketTypeFromNative(sal_uInt32 nativeType)
/*****************************************************************************/
/* map */
-static sal_uInt32 OptionMap[]= {
+static const sal_uInt32 OptionMap[]= {
SO_DEBUG, /* osl_Socket_OptionDebug */
SO_ACCEPTCONN, /* osl_Socket_OptionAcceptConn */
SO_REUSEADDR, /* osl_Socket_OptionReuseAddr */
@@ -240,7 +240,7 @@ static oslSocketOption osl_SocketOptionFromNative(sal_uInt32 nativeType)
/* enum oslSocketOptionLevel */
/*****************************************************************************/
-static sal_uInt32 OptionLevelMap[]= {
+static const sal_uInt32 OptionLevelMap[]= {
SOL_SOCKET, /* osl_Socket_LevelSocket */
IPPROTO_TCP, /* osl_Socket_LevelTcp */
0 /* osl_Socket_LevelInvalid */
@@ -269,7 +269,7 @@ static oslSocketOptionLevel osl_SocketOptionLevelFromNative(sal_uInt32 nativeTyp
/* enum oslSocketMsgFlag */
/*****************************************************************************/
-static sal_uInt32 SocketMsgFlagMap[]= {
+static const sal_uInt32 SocketMsgFlagMap[]= {
0, /* osl_Socket_MsgNormal */
MSG_OOB, /* osl_Socket_MsgOOB */
MSG_PEEK, /* osl_Socket_MsgPeek */
@@ -302,7 +302,7 @@ static oslSocketMsgFlag osl_SocketMsgFlagFromNative(sal_uInt32 nativeType)
/* enum oslSocketDirection */
/*****************************************************************************/
-static sal_uInt32 SocketDirection[]= {
+static const sal_uInt32 SocketDirection[]= {
SD_RECEIVE, /* osl_Socket_DirRead */
SD_SEND, /* osl_Socket_DirWrite */
SD_BOTH, /* osl_Socket_DirReadWrite */
@@ -333,7 +333,7 @@ static oslSocketDirection osl_SocketDirectionFromNative(sal_uInt32 nativeType)
/* enum oslSocketError */
/*****************************************************************************/
-static struct
+static const struct
{
int errcode;
oslSocketError error;
diff --git a/sal/rtl/locale.cxx b/sal/rtl/locale.cxx
index 0c47b95cb3dc..d075eda742f1 100644
--- a/sal/rtl/locale.cxx
+++ b/sal/rtl/locale.cxx
@@ -24,7 +24,7 @@
#include "internal/rtllifecycle.h"
-static sal_Int32 RTL_HASHTABLE_SIZE[] =
+static const sal_Int32 RTL_HASHTABLE_SIZE[] =
{
7, 31, 127, 251, 509, 1021, 2039, 4093
};