mark filename as const string

This commit is contained in:
matthias.ringwald@gmail.com 2014-04-11 12:18:19 +00:00
parent 13a066ee9a
commit a225073e6b
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ static int nr_packets = 0;
static char log_message_buffer[256];
#endif
void hci_dump_open(char *filename, hci_dump_format_t format){
void hci_dump_open(const char *filename, hci_dump_format_t format){
#ifndef EMBEDDED
dump_format = format;
if (dump_format == HCI_DUMP_STDOUT) {

View File

@ -57,7 +57,7 @@ typedef enum {
HCI_DUMP_STDOUT
} hci_dump_format_t;
void hci_dump_open(char *filename, hci_dump_format_t format);
void hci_dump_open(const char *filename, hci_dump_format_t format);
void hci_dump_set_max_packets(int packets); // -1 for unlimited
void hci_dump_packet(uint8_t packet_type, uint8_t in, uint8_t *packet, uint16_t len);
void hci_dump_log(const char * format, ...);