summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-07-08 14:29:26 +0200
committerdegasus <wickmarkus@web.de>2014-07-11 16:07:23 +0200
commit22e1aa5bb4a159d6d66a321f978917614aa36331 (patch)
tree5f1ec329704dd6120cfb5966dba76387ad1bbc2f /Source/Core/Common
parent3ff1c538ee20f59e513640865bab8fb430e70e84 (diff)
mark all local functions as static
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/CDUtils.cpp2
-rw-r--r--Source/Core/Common/ColorUtil.cpp2
-rw-r--r--Source/Core/Common/Crypto/bn.cpp1
-rw-r--r--Source/Core/Common/MemoryUtil.cpp1
-rw-r--r--Source/Core/Common/SysConf.cpp2
5 files changed, 5 insertions, 3 deletions
diff --git a/Source/Core/Common/CDUtils.cpp b/Source/Core/Common/CDUtils.cpp
index 4dfdcacd64..e0ccd20dab 100644
--- a/Source/Core/Common/CDUtils.cpp
+++ b/Source/Core/Common/CDUtils.cpp
@@ -155,7 +155,7 @@ static struct
};
// Returns true if a device is a block or char device and not a symbolic link
-bool is_device(const std::string& source_name)
+static bool is_device(const std::string& source_name)
{
struct stat buf;
if (0 != lstat(source_name.c_str(), &buf))
diff --git a/Source/Core/Common/ColorUtil.cpp b/Source/Core/Common/ColorUtil.cpp
index 0930668fe4..f0ff3b32b5 100644
--- a/Source/Core/Common/ColorUtil.cpp
+++ b/Source/Core/Common/ColorUtil.cpp
@@ -16,7 +16,7 @@ const int lut4to8[] = { 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,
0x88,0x99,0xAA,0xBB,0xCC,0xDD,0xEE,0xFF };
const int lut3to8[] = { 0x00,0x24,0x48,0x6D,0x91,0xB6,0xDA,0xFF };
-u32 Decode5A3(u16 val)
+static u32 Decode5A3(u16 val)
{
const u32 bg_color = 0x00000000;
diff --git a/Source/Core/Common/Crypto/bn.cpp b/Source/Core/Common/Crypto/bn.cpp
index 4f7c93e841..425a9aa795 100644
--- a/Source/Core/Common/Crypto/bn.cpp
+++ b/Source/Core/Common/Crypto/bn.cpp
@@ -6,6 +6,7 @@
#include <string.h>
#include "Common/Common.h"
+#include "Common/Crypto/bn.h"
static void bn_zero(u8 *d, u32 n)
{
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp
index bb3ddf58a4..0ae08ced89 100644
--- a/Source/Core/Common/MemoryUtil.cpp
+++ b/Source/Core/Common/MemoryUtil.cpp
@@ -7,6 +7,7 @@
#include <string>
#include "Common/Common.h"
+#include "Common/MemoryUtil.h"
#ifdef _WIN32
#include <windows.h>
diff --git a/Source/Core/Common/SysConf.cpp b/Source/Core/Common/SysConf.cpp
index 6cd4f1bce2..46ced20fc3 100644
--- a/Source/Core/Common/SysConf.cpp
+++ b/Source/Core/Common/SysConf.cpp
@@ -154,7 +154,7 @@ bool SysConf::LoadFromFileInternal(FILE *fh)
}
// Returns the size of the item in file
-unsigned int create_item(SSysConfEntry &item, SysconfType type, const std::string &name,
+static unsigned int create_item(SSysConfEntry &item, SysconfType type, const std::string &name,
const int data_length, unsigned int offset)
{
item.offset = offset;