[dahdi-commits] tzafrir: tools/trunk r10543 - in /tools/trunk/xpp: ./ xtalk/
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Mon Mar 19 11:57:28 CDT 2012
Author: tzafrir
Date: Mon Mar 19 11:57:24 2012
New Revision: 10543
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=10543
Log:
xpp: fix build warnings
Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Modified:
tools/trunk/xpp/astribank_allow.c
tools/trunk/xpp/astribank_license.c
tools/trunk/xpp/echo_loader.c
tools/trunk/xpp/xtalk/xtalk.c
Modified: tools/trunk/xpp/astribank_allow.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_allow.c?view=diff&rev=10543&r1=10542&r2=10543
==============================================================================
--- tools/trunk/xpp/astribank_allow.c (original)
+++ tools/trunk/xpp/astribank_allow.c Mon Mar 19 11:57:24 2012
@@ -142,7 +142,7 @@
return 1;
}
if (do_write) {
- int used_marker;
+ unsigned int used_marker;
/* update capabilities based on input file */
file = stdin;
if (filename) {
Modified: tools/trunk/xpp/astribank_license.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/astribank_license.c?view=diff&rev=10543&r1=10542&r2=10543
==============================================================================
--- tools/trunk/xpp/astribank_license.c (original)
+++ tools/trunk/xpp/astribank_license.c Mon Mar 19 11:57:24 2012
@@ -22,6 +22,7 @@
#include <errno.h>
#include <stdio.h>
+#include <ctype.h>
#include <string.h>
#include <debug.h>
#include "astribank_license.h"
@@ -230,7 +231,7 @@
char buf[256];
char *line, *key, *value;
int lineno = 0;
- unsigned int license_marker_begin;
+ unsigned int license_marker_begin = 0;
unsigned int license_marker_end;
struct table {
struct eeprom_table eeprom_table;
Modified: tools/trunk/xpp/echo_loader.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/echo_loader.c?view=diff&rev=10543&r1=10542&r2=10543
==============================================================================
--- tools/trunk/xpp/echo_loader.c (original)
+++ tools/trunk/xpp/echo_loader.c Mon Mar 19 11:57:24 2012
@@ -123,7 +123,7 @@
long usec;
usec = usb_buffer_usec(ub);
- AB_INFO(astribank, "Octasic statistics: packet_size=[%d, %ld, %d] packets=%d, bytes=%ld msec=%ld usec/packet=%d\n",
+ AB_INFO(astribank, "Octasic statistics: packet_size=[%d, %ld, %d] packets=%d, bytes=%ld msec=%ld usec/packet=%ld\n",
ub->min_send,
ub->total_bytes / ub->num_sends,
ub->max_send,
@@ -822,9 +822,7 @@
int load_echo(struct astribank_device *astribank, char *filename, int is_alaw)
{
- int iLen;
int ret;
- unsigned char *pbyFileData = NULL;
UINT32 octasic_status;
AB_INFO(astribank, "Loading ECHOCAN Firmware: %s (%s)\n",
Modified: tools/trunk/xpp/xtalk/xtalk.c
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/xtalk/xtalk.c?view=diff&rev=10543&r1=10542&r2=10543
==============================================================================
--- tools/trunk/xpp/xtalk/xtalk.c (original)
+++ tools/trunk/xpp/xtalk/xtalk.c Mon Mar 19 11:57:24 2012
@@ -243,16 +243,17 @@
{
int ret;
int len;
- char *buf;
void *priv = xtalk_dev->transport_priv;
len = cmd->header.len;
cmd->header.seq = xtalk_dev->tx_sequenceno;
- buf = (char *)cmd;
//printf("%s: len=%d\n", __FUNCTION__, len);
#if 0
extern FILE *fp;
+ char *buf;
+
+ buf = (char *)cmd;
if(fp) {
int i;
More information about the dahdi-commits
mailing list