[Swift-commit] cog r3993

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Jun 30 12:15:03 CDT 2014


------------------------------------------------------------------------
r3993 | timgarmstrong | 2014-06-30 12:10:19 -0500 (Mon, 30 Jun 2014) | 1 line

Static linkage for internal functions
------------------------------------------------------------------------
Index: modules/provider-coaster-c-client/src/CoasterChannel.cpp
===================================================================
--- modules/provider-coaster-c-client/src/CoasterChannel.cpp	(revision 3992)
+++ modules/provider-coaster-c-client/src/CoasterChannel.cpp	(working copy)
@@ -27,8 +27,8 @@
 using std::min;
 using std::string;
 
-int socksend(int fd, const char* buf, int len, int flags);
-void pp(char* dest, const char* src, int len);
+static int socksend(int fd, const char* buf, int len, int flags);
+static void pp(char* dest, const char* src, int len);
 
 class HeartBeatCommand;
 
@@ -357,11 +357,11 @@
 /*
  * Without this, GCC gets confused by CoasterChannel::send.
  */
-int socksend(int fd, const char* buf, int len, int flags) {
+static int socksend(int fd, const char* buf, int len, int flags) {
 	return send(fd, buf, len, flags);
 }
 
-void pp(char* dest, const char* src, int len) {
+static void pp(char* dest, const char* src, int len) {
 	for(int i = 0; i < len; i++) {
 		char c = src[i];
 		if (c < '0' || c > 127) {



More information about the Swift-commit mailing list