janitor: Move the * to the variable name

This commit is contained in:
Holger Hans Peter Freyther 2010-09-18 06:44:24 +08:00
parent 212e105288
commit adb6e1cce1
13 changed files with 17 additions and 17 deletions

View File

@ -74,7 +74,7 @@ static void print_help()
printf(" -t --testmode. A special mode to provoke failures at the MSC.\n");
}
static void handle_options(int argc, char** argv)
static void handle_options(int argc, char **argv)
{
while (1) {
int option_index = 0, c;

View File

@ -187,7 +187,7 @@ int gsm0808_cipher_mode(struct gsm_subscriber_connection *conn, int cipher,
/*
* Release all occupied RF Channels but stay around for more.
*/
int gsm0808_clear(struct gsm_subscriber_connection* conn)
int gsm0808_clear(struct gsm_subscriber_connection *conn)
{
if (conn->ho_lchan)
bsc_clear_handover(conn);

View File

@ -93,7 +93,7 @@ static void print_help()
printf(" -e --log-level number. Set a global loglevel.\n");
}
static void handle_options(int argc, char** argv)
static void handle_options(int argc, char **argv)
{
while (1) {
int option_index = 0, c;

View File

@ -736,7 +736,7 @@ int db_subscriber_alloc_tmsi(struct gsm_subscriber *subscriber)
{
dbi_result result = NULL;
char tmsi[14];
char* tmsi_quoted;
char *tmsi_quoted;
for (;;) {
subscriber->tmsi = rand();

View File

@ -303,7 +303,7 @@ static int gsm0408_authorize(struct gsm_subscriber_connection *conn, struct msgb
return 0;
}
void gsm0408_clear_request(struct gsm_subscriber_connection* conn, uint32_t cause)
void gsm0408_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause)
{
struct gsm_trans *trans, *temp;

View File

@ -80,7 +80,7 @@ static void print_help()
printf(" -c --config-file filename The config file to use.\n");
}
static void handle_options(int argc, char** argv)
static void handle_options(int argc, char **argv)
{
while (1) {
int option_index = 0, c;
@ -189,7 +189,7 @@ static struct vty_app_info vty_info = {
.is_config_node = bsc_vty_is_config_node,
};
int main(int argc, char** argv)
int main(int argc, char **argv)
{
struct gsm_network dummy_network;
struct sockaddr_in addr;

View File

@ -353,7 +353,7 @@ static struct msgb *handle_audit_endpoint(struct mgcp_config *cfg, struct msgb *
return create_response(response, "AUEP", trans_id);
}
static int parse_conn_mode(const char* msg, int *conn_mode)
static int parse_conn_mode(const char *msg, int *conn_mode)
{
int ret = 0;
if (strcmp(msg, "recvonly") == 0)

View File

@ -73,7 +73,7 @@ static struct bsc_pkt_filter white_list[] = {
{ NAT_IPAC_PROTO_MGCP, ALLOW_ANY, ALLOW_ANY, ALLOW_ANY, FILTER_TO_BOTH },
};
struct bsc_nat_parsed* bsc_nat_parse(struct msgb *msg)
struct bsc_nat_parsed *bsc_nat_parse(struct msgb *msg)
{
struct sccp_parse_result result;
struct bsc_nat_parsed *parsed;

View File

@ -709,7 +709,7 @@ static void ipaccess_close_bsc(void *data)
static void ipaccess_auth_bsc(struct tlv_parsed *tvp, struct bsc_connection *bsc)
{
struct bsc_config *conf;
const char* token = (const char *) TLVP_VAL(tvp, IPAC_IDTAG_UNITNAME);
const char *token = (const char *) TLVP_VAL(tvp, IPAC_IDTAG_UNITNAME);
if (bsc->cfg) {
LOGP(DNAT, LOGL_ERROR, "Reauth on fd %d bsc nr %d\n",
@ -1075,7 +1075,7 @@ static void print_help()
printf(" -l --local=IP. The local address of this BSC.\n");
}
static void handle_options(int argc, char** argv)
static void handle_options(int argc, char **argv)
{
while (1) {
int option_index = 0, c;
@ -1180,7 +1180,7 @@ static struct vty_app_info vty_info = {
.is_config_node = bsc_vty_is_config_node,
};
int main(int argc, char** argv)
int main(int argc, char **argv)
{
int rc;

View File

@ -28,7 +28,7 @@
#include <openbsc/gsm_04_11.h>
static void msc_sapi_n_reject(struct gsm_subscriber_connection* conn, int dlci)
static void msc_sapi_n_reject(struct gsm_subscriber_connection *conn, int dlci)
{
int sapi = dlci & 0x7;
@ -36,7 +36,7 @@ static void msc_sapi_n_reject(struct gsm_subscriber_connection* conn, int dlci)
gsm411_sapi_n_reject(conn);
}
static void msc_clear_request(struct gsm_subscriber_connection* conn, uint32_t cause)
static void msc_clear_request(struct gsm_subscriber_connection *conn, uint32_t cause)
{
gsm0408_clear_request(conn, cause);
}

View File

@ -46,7 +46,7 @@ void paging_request(struct gsm_bts *bts, struct gsm_subscriber *subscriber, int
}
int main(int argc, char** argv)
int main(int argc, char **argv)
{
struct gsm_network *network;
struct gsm_bts *bts;

View File

@ -22,7 +22,7 @@
#include <openbsc/debug.h>
int main(int argc, char** argv)
int main(int argc, char **argv)
{
struct log_target *stderr_target;

View File

@ -95,7 +95,7 @@ static void test_mi_functionality(void)
COMPARE_STR(mi_parsed, imsi_even);
}
int main(int argc, char** argv)
int main(int argc, char **argv)
{
test_location_area_identifier();
test_mi_functionality();