Changeset 4713


Ignore:
Timestamp:
Jan 23, 2014 8:13:11 AM (11 years ago)
Author:
nanang
Message:

Misc (re #1630): Fixed symbols that should not be exported (thanks Tzafrir Cohen for the patch).

Location:
pjproject/trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/base64.c

    r4537 r4713  
    2525#define PADDING     '=' 
    2626 
    27 const char base64_char[] = { 
     27static const char base64_char[] = { 
    2828    'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 
    2929    'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 
  • pjproject/trunk/pjlib-util/src/pjlib-util/getopt.c

    r3550 r4713  
    112112   know that. */ 
    113113 
    114 int __getopt_initialized = 0; 
     114static int __getopt_initialized = 0; 
    115115 
    116116/* The next char to be scanned in the option-element 
  • pjproject/trunk/pjlib-util/src/pjlib-util/http_client.c

    r4614 r4713  
    14971497 * result at the back of the string. 
    14981498 */ 
    1499 void str_snprintf(pj_str_t *s, size_t size,  
    1500                   pj_bool_t append, const char *format, ...) 
     1499static void str_snprintf(pj_str_t *s, size_t size,  
     1500                        pj_bool_t append, const char *format, ...) 
    15011501{ 
    15021502    va_list arg; 
  • pjproject/trunk/pjlib/src/pj/pool_buf.c

    r4624 r4713  
    2222#include <pj/os.h> 
    2323 
    24 struct pj_pool_factory stack_based_factory; 
     24static struct pj_pool_factory stack_based_factory; 
    2525 
    2626struct creation_param 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/g722/g722_dec.c

    r3553 r4713  
    451451} 
    452452 
    453 void rx_qmf(g722_dec_t *dec, int rl, int rh, int *xout1, int *xout2) 
     453static void rx_qmf(g722_dec_t *dec, int rl, int rh, int *xout1, int *xout2) 
    454454{ 
    455455    int i; 
  • pjproject/trunk/pjmedia/src/pjmedia-codec/speex_codec.c

    r4537 r4713  
    726726 * Returns 0 if a frame found, otherwise returns -1. 
    727727 */ 
    728 int speex_get_next_frame(SpeexBits *bits) 
     728static int speex_get_next_frame(SpeexBits *bits) 
    729729{ 
    730730    static const int inband_skip_table[NB_SUBMODES] = 
  • pjproject/trunk/pjmedia/src/pjmedia/echo_suppress.c

    r3664 r4713  
    126126} talk_state_t; 
    127127 
    128 const char *state_names[] =  
     128static const char *state_names[] =  
    129129{ 
    130130    "Null", 
  • pjproject/trunk/pjnath/src/pjnath/ice_session.c

    r4602 r4713  
    19871987 
    19881988/* Utility: find string in string array */ 
    1989 const pj_str_t *find_str(const pj_str_t *strlist[], unsigned count, 
    1990                          const pj_str_t *str) 
     1989static const pj_str_t *find_str(const pj_str_t *strlist[], unsigned count, 
     1990                                const pj_str_t *str) 
    19911991{ 
    19921992    unsigned i; 
  • pjproject/trunk/pjsip/src/pjsip-simple/presence.c

    r3553 r4713  
    131131 * Some static constants. 
    132132 */ 
    133 const pj_str_t STR_EVENT            = { "Event", 5 }; 
    134 const pj_str_t STR_PRESENCE         = { "presence", 8 }; 
    135 const pj_str_t STR_APPLICATION      = { "application", 11 }; 
    136 const pj_str_t STR_PIDF_XML         = { "pidf+xml", 8}; 
    137 const pj_str_t STR_XPIDF_XML        = { "xpidf+xml", 9}; 
    138 const pj_str_t STR_APP_PIDF_XML     = { "application/pidf+xml", 20 }; 
    139 const pj_str_t STR_APP_XPIDF_XML    = { "application/xpidf+xml", 21 }; 
     133static const pj_str_t STR_EVENT     = { "Event", 5 }; 
     134static const pj_str_t STR_PRESENCE          = { "presence", 8 }; 
     135static const pj_str_t STR_APPLICATION       = { "application", 11 }; 
     136static const pj_str_t STR_PIDF_XML          = { "pidf+xml", 8}; 
     137static const pj_str_t STR_XPIDF_XML         = { "xpidf+xml", 9}; 
     138static const pj_str_t STR_APP_PIDF_XML      = { "application/pidf+xml", 20 }; 
     139static const pj_str_t STR_APP_XPIDF_XML    = { "application/xpidf+xml", 21 }; 
    140140 
    141141 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_100rel.c

    r4613 r4713  
    5151 
    5252 
    53 const pj_str_t tag_100rel = { "100rel", 6 }; 
    54 const pj_str_t RSEQ = { "RSeq", 4 }; 
    55 const pj_str_t RACK = { "RAck", 4 }; 
     53static const pj_str_t tag_100rel = { "100rel", 6 }; 
     54static const pj_str_t RSEQ = { "RSeq", 4 }; 
     55static const pj_str_t RACK = { "RAck", 4 }; 
    5656 
    5757 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c

    r4703 r4713  
    193193 * Set session state. 
    194194 */ 
    195 void inv_set_state(pjsip_inv_session *inv, pjsip_inv_state state, 
    196                    pjsip_event *e) 
     195static void inv_set_state(pjsip_inv_session *inv, pjsip_inv_state state, 
     196                          pjsip_event *e) 
    197197{ 
    198198    pjsip_inv_state prev_state = inv->state; 
     
    284284 * Set cause code. 
    285285 */ 
    286 void inv_set_cause(pjsip_inv_session *inv, int cause_code, 
    287                    const pj_str_t *cause_text) 
     286static void inv_set_cause(pjsip_inv_session *inv, int cause_code, 
     287                          const pj_str_t *cause_text) 
    288288{ 
    289289    if (cause_code > inv->cause) { 
  • pjproject/trunk/pjsip/src/pjsip-ua/sip_xfer.c

    r3553 r4713  
    7777 * String constants 
    7878 */ 
    79 const pj_str_t STR_REFER = { "refer", 5 }; 
    80 const pj_str_t STR_MESSAGE = { "message", 7 }; 
    81 const pj_str_t STR_SIPFRAG = { "sipfrag", 7 }; 
    82 const pj_str_t STR_SIPFRAG_VERSION = {";version=2.0", 12 }; 
     79static const pj_str_t STR_REFER = { "refer", 5 }; 
     80static const pj_str_t STR_MESSAGE = { "message", 7 }; 
     81static const pj_str_t STR_SIPFRAG = { "sipfrag", 7 }; 
     82static const pj_str_t STR_SIPFRAG_VERSION = {";version=2.0", 12 }; 
    8383 
    8484 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r4615 r4713  
    131131 * Transport names. 
    132132 */ 
    133 struct transport_names_t 
     133static struct transport_names_t 
    134134{ 
    135135    pjsip_transport_type_e type;            /* Transport type       */ 
     
    218218 
    219219 
    220 struct transport_names_t *get_tpname(pjsip_transport_type_e type) 
     220static struct transport_names_t *get_tpname(pjsip_transport_type_e type) 
    221221{ 
    222222    unsigned i; 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport_loop.c

    r3553 r4713  
    6868 
    6969/* Helper function to create "incoming" packet */ 
    70 struct recv_list *create_incoming_packet( struct loop_transport *loop, 
    71                                           pjsip_tx_data *tdata ) 
     70static struct recv_list *create_incoming_packet( struct loop_transport *loop, 
     71                                                pjsip_tx_data *tdata ) 
    7272{ 
    7373    pj_pool_t *pool; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c

    r4613 r4713  
    17881788 
    17891789/* Check and update Service-Route header */ 
    1790 void update_service_route(pjsua_acc *acc, pjsip_rx_data *rdata) 
     1790static void update_service_route(pjsua_acc *acc, pjsip_rx_data *rdata) 
    17911791{ 
    17921792    pjsip_generic_string_hdr *hsr = NULL; 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c

    r4564 r4713  
    7575 
    7676/* Acquire lock to the specified buddy_id */ 
    77 pj_status_t lock_buddy(const char *title, 
    78                        pjsua_buddy_id buddy_id, 
    79                        struct buddy_lock *lck, 
    80                        unsigned _unused_) 
     77static pj_status_t lock_buddy(const char *title, 
     78                              pjsua_buddy_id buddy_id, 
     79                              struct buddy_lock *lck, 
     80                              unsigned _unused_) 
    8181{ 
    8282    enum { MAX_RETRY=50 }; 
Note: See TracChangeset for help on using the changeset viewer.