X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=port.cpp;h=3dc5f689209b10e22187d14801a3bc0f867b867e;hp=f1f92d1e0e36e5cb1bbbc7dcfa73c9cd19a22ab9;hb=6642360dcf1eecba954ad04d2d0a78753f8e5182;hpb=7f0d14c706328e1ff74fe8b8c16ae54407cc8055 diff --git a/port.cpp b/port.cpp index f1f92d1..3dc5f68 100644 --- a/port.cpp +++ b/port.cpp @@ -179,6 +179,7 @@ Port::Port(int type, const char *portname, struct port_settings *settings, struc /* call recording */ p_record = NULL; + p_tap = 0; p_record_type = 0; p_record_length = 0; p_record_skip = 0; @@ -665,7 +666,7 @@ int Port::open_record(int type, int vbox, int skip, char *extension, int anon_ig char filename[256]; time_t now; struct tm *now_tm; - int ret; + int __attribute__((__unused__)) ret; if (!extension) { PERROR("Port(%d) not an extension\n", p_serial); @@ -758,7 +759,7 @@ void Port::close_record(int beep, int mute) char *p; struct caller_info callerinfo; const char *valid_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890_.-!$%&/()=+*;~"; - int ret; + int __attribute__((__unused__)) ret; if (!p_record) return; @@ -959,7 +960,7 @@ void Port::record(unsigned char *data, int length, int dir_fromup) signed short *s; int free, i, ii; signed int sample; - int ret; + int __attribute__((__unused__)) ret; /* no recording */ if (!p_record || !length) @@ -1164,6 +1165,10 @@ different_again: } +void Port::tap(unsigned char *data, int length, int dir_fromup) +{ +} + void Port::update_rxoff(void) { }