Browse Source

Add const to callsign input argument

master
Jeroen Vreeken 8 months ago
parent
commit
0e34461745
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      eth_ar.c
  2. +2
    -2
      eth_ar/eth_ar.h

+ 2
- 2
eth_ar.c View File

@ -41,7 +41,7 @@ static char alnum2code[37] = {
0
};
int eth_ar_call2mac(uint8_t mac[6], char *callsign, int ssid, bool multicast)
int eth_ar_call2mac(uint8_t mac[6], const char *callsign, int ssid, bool multicast)
{
uint64_t add = 0;
int i;
@ -81,7 +81,7 @@ int eth_ar_call2mac(uint8_t mac[6], char *callsign, int ssid, bool multicast)
return 0;
}
int eth_ar_callssid2mac(uint8_t mac[6], char *callsign, bool multicast)
int eth_ar_callssid2mac(uint8_t mac[6], const char *callsign, bool multicast)
{
int ssid = 0;
char call[9];


+ 2
- 2
eth_ar/eth_ar.h View File

@ -53,8 +53,8 @@ extern "C" {
#define ETH_AR_CALL_LEN_MAX 8
#define ETH_AR_CALL_SIZE 9
int eth_ar_call2mac(uint8_t mac[ETH_AR_MAC_SIZE], char *callsign, int ssid, bool multicast);
int eth_ar_callssid2mac(uint8_t mac[ETH_AR_MAC_SIZE], char *callsign, bool multicast);
int eth_ar_call2mac(uint8_t mac[ETH_AR_MAC_SIZE], const char *callsign, int ssid, bool multicast);
int eth_ar_callssid2mac(uint8_t mac[ETH_AR_MAC_SIZE], const char *callsign, bool multicast);
int eth_ar_mac2call(char *callsign, int *ssid, bool *multicast, uint8_t mac[ETH_AR_MAC_SIZE]);
int eth_ar_mac_ssid_mask(uint8_t masked_mac[ETH_AR_MAC_SIZE], const uint8_t mac[ETH_AR_MAC_SIZE]);


Loading…
Cancel
Save