qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject svn commit: r1406248 - in /qpid/proton/trunk/proton-c/src: messenger.c ssl/openssl.c
Date Tue, 06 Nov 2012 17:52:54 GMT
Author: astitcher
Date: Tue Nov  6 17:52:54 2012
New Revision: 1406248

URL: http://svn.apache.org/viewvc?rev=1406248&view=rev
Log:
Made some functions static to avoid symbol exporting spew

Modified:
    qpid/proton/trunk/proton-c/src/messenger.c
    qpid/proton/trunk/proton-c/src/ssl/openssl.c

Modified: qpid/proton/trunk/proton-c/src/messenger.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/messenger.c?rev=1406248&r1=1406247&r2=1406248&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/messenger.c (original)
+++ qpid/proton/trunk/proton-c/src/messenger.c Tue Nov  6 17:52:54 2012
@@ -227,7 +227,7 @@ int pn_queue_update(pn_queue_t *queue, p
 #define pn_tracker_direction(tracker) ((tracker) & (0x1000000000000000))
 #define pn_tracker_sequence(tracker) ((pn_sequence_t) ((tracker) & (0x00000000FFFFFFFF)))
 
-char *build_name(const char *name)
+static char *build_name(const char *name)
 {
   if (name) {
     return pn_strdup(name);
@@ -465,7 +465,7 @@ void pn_messenger_reclaim(pn_messenger_t
   }
 }
 
-long int millis(struct timeval tv)
+static long int millis(struct timeval tv)
 {
   return tv.tv_sec * 1000 + tv.tv_usec/1000;
 }
@@ -583,7 +583,7 @@ int pn_messenger_stop(pn_messenger_t *me
   return pn_messenger_sync(messenger, pn_messenger_stopped);
 }
 
-bool pn_streq(const char *a, const char *b)
+static bool pn_streq(const char *a, const char *b)
 {
   return a == b || (a && b && !strcmp(a, b));
 }
@@ -836,7 +836,7 @@ static void outward_munge(pn_messenger_t
   }
 }
 
-bool false_pred(pn_messenger_t *messenger) { return false; }
+// static bool false_pred(pn_messenger_t *messenger) { return false; }
 
 int pn_messenger_put(pn_messenger_t *messenger, pn_message_t *msg)
 {
@@ -900,7 +900,7 @@ pn_queue_t *pn_tracker_queue(pn_messenge
   }
 }
 
-pn_status_t disp2status(pn_disposition_t disp)
+static pn_status_t disp2status(pn_disposition_t disp)
 {
   if (!disp) return PN_STATUS_PENDING;
 

Modified: qpid/proton/trunk/proton-c/src/ssl/openssl.c
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/ssl/openssl.c?rev=1406248&r1=1406247&r2=1406248&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/ssl/openssl.c (original)
+++ qpid/proton/trunk/proton-c/src/ssl/openssl.c Tue Nov  6 17:52:54 2012
@@ -612,7 +612,7 @@ static int keyfile_pw_cb(char *buf, int 
 }
 
 
-int start_ssl_shutdown( pn_ssl_t *ssl )
+static int start_ssl_shutdown( pn_ssl_t *ssl )
 {
   if (!ssl->ssl_shutdown) {
     _log(ssl, "Shutting down SSL connection...\n");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message