Some warnings
This commit is contained in:
parent
5fb3e2711c
commit
c42b78543b
@ -3,7 +3,7 @@
|
||||
* (C)2005, Dan Ponte
|
||||
* BSDL w/ advert.
|
||||
*/
|
||||
/* $Amigan: phoned/include/phoned.h,v 1.25 2005/06/22 22:01:47 dcp1990 Exp $ */
|
||||
/* $Amigan: phoned/include/phoned.h,v 1.26 2005/06/23 16:46:06 dcp1990 Exp $ */
|
||||
#include <pcre.h> /* fugly, I know... */
|
||||
#define VERSION "0.1"
|
||||
#define LOGFILE "-"
|
||||
@ -130,12 +130,12 @@ typedef struct mod_t {
|
||||
int deffuncs;
|
||||
int (*init)(void);
|
||||
int (*destroy)(void);
|
||||
mod_res_t (*evalrc)(char *result);
|
||||
mod_res_t (*evalrc)(char*);
|
||||
void (*pickup)(void);
|
||||
void (*hangup)(void);
|
||||
void (*sdev)(enum device_t d);
|
||||
void (*sdev)(enum device_t);
|
||||
void (*voice_init)(void);
|
||||
void (*set_rings)(short rings);
|
||||
void (*set_rings)(int);
|
||||
} modem_t;
|
||||
typedef enum stat {
|
||||
init = 0,
|
||||
|
@ -166,7 +166,7 @@ void modem_hread(char* cbuf)
|
||||
if((buffer[0] == '8' && buffer[1] == '0') || (buffer[0] == '0' && buffer[1] == '4'))
|
||||
doing_cid = 1;
|
||||
if(cbuf[0] == '\n') {
|
||||
/* lprintf(debug, "Modem said %s", buffer); */
|
||||
lprintf(debug, "Modem said %s", buffer);
|
||||
if(doing_cid) {
|
||||
cid_t *rc;
|
||||
rc = parse_cid(buffer);
|
||||
|
@ -27,7 +27,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
/* $Amigan: phoned/phoned/modems/rockwell.c,v 1.5 2005/06/23 02:11:08 dcp1990 Exp $ */
|
||||
/* $Amigan: phoned/phoned/modems/rockwell.c,v 1.6 2005/06/23 16:46:10 dcp1990 Exp $ */
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
@ -144,7 +144,7 @@ void rw_voice_init(void)
|
||||
rw_sdev(dialup);
|
||||
}
|
||||
void rw_set_rings(rings)
|
||||
short rings;
|
||||
int rings;
|
||||
{
|
||||
char buf[20];
|
||||
sprintf(buf, "AT S0=%d", rings);
|
||||
|
Loading…
Reference in New Issue
Block a user