Insert _rxer into function names
authornorly <ny-git@enpas.org>
Thu, 30 Mar 2017 18:34:19 +0000 (20:34 +0200)
committernorly <ny-git@enpas.org>
Thu, 30 Mar 2017 18:34:19 +0000 (20:34 +0200)
vw-bap-dump.c
vw-bap-sniffer.c
vw-bap.c
vw-bap.h

index ac4f7be21dc37fd02e26ed14f314c3affc1a84b7..62916f15e4b3ae31ccd6423f24a4c5c124f3bb14 100644 (file)
@@ -89,7 +89,7 @@ int main(int argc, char **argv)
 
        for (i = 0; i < can_id_count; i++) {
                can_ids[i] = strtoul(argv[2 + i], NULL, 0);
-               baps[i] = vw_bap_alloc();
+               baps[i] = vw_bap_rxer_alloc();
                if (!baps[i]) {
                        printf("Out of memory allocating BAP struct.\n");
                        return 1;
index 5a14320f799546f4840b79f4f7dfd77bb97671af..d3c3c9ece3e4a344aaeae68c44e9d8919b5e273a 100644 (file)
@@ -82,7 +82,7 @@ int main(int argc, char **argv)
        can_id = strtoul(argv[2], NULL, 0);
        node_id = strtoul(argv[3], NULL, 0);
 
-       bap = vw_bap_alloc();
+       bap = vw_bap_rxer_alloc();
        if (!bap) {
                printf("Out of memory allocating BAP struct.\n");
                return 1;
@@ -175,7 +175,7 @@ int main(int argc, char **argv)
 
        endwin();
 
-       vw_bap_free(bap);
+       vw_bap_rxer_free(bap);
 
        close(s);
 
index 51941473624a6209dd113866be933831a05bc3cd..13fcc3c57d13bf2feb145983474ff53606ab328c 100644 (file)
--- a/vw-bap.c
+++ b/vw-bap.c
@@ -185,7 +185,7 @@ void vw_bap_frame_free(struct BAP_Frame *bap_frame)
 
 
 
-struct BAP_RXer* vw_bap_alloc()
+struct BAP_RXer* vw_bap_rxer_alloc()
 {
        struct BAP_RXer *bap;
 
@@ -200,7 +200,7 @@ struct BAP_RXer* vw_bap_alloc()
 
 
 
-void vw_bap_free(struct BAP_RXer *bap)
+void vw_bap_rxer_free(struct BAP_RXer *bap)
 {
        int i;
 
index 9930cfb3862a7929604e895e21c49f5388984031..b7540ea070a816d55d60a3c56675257c139f7c79 100644 (file)
--- a/vw-bap.h
+++ b/vw-bap.h
@@ -70,8 +70,8 @@ struct BAP_Frame* vw_bap_handle_can_frame(struct BAP_RXer *bap, struct can_frame
 
 void vw_bap_frame_free(struct BAP_Frame *bap_frame);
 
-struct BAP_RXer* vw_bap_alloc();
-void vw_bap_free(struct BAP_RXer *bap);
+struct BAP_RXer* vw_bap_rxer_alloc();
+void vw_bap_rxer_free(struct BAP_RXer *bap);
 
 
 #endif