char *inbuf, *variable;
const char *value;
- int j;
struct ast_str *newstring = ast_str_alloca(outbuflen);
outbuf[0] = '\0';
- for (j = 1, inbuf = data; ; j++) {
+ for (inbuf = data; ; ) {
variable = strsep(&inbuf, ",");
if (variable == NULL) {
int outstrlen = strlen(outbuf);
}
/*! \brief Read message template from file */
-static char *message_template_parse_filebody(const char *filename) {
+static char *message_template_parse_filebody(const char *filename)
+{
char buf[BUFSIZ * 6];
char readbuf[BUFSIZ];
char filenamebuf[BUFSIZ];
char *writepos;
char *messagebody;
FILE *fi;
- int lines = 0;
if (ast_strlen_zero(filename))
return NULL;
}
writepos = buf;
while (fgets(readbuf, sizeof(readbuf), fi)) {
- lines ++;
if (writepos != buf) {
*writepos = '\n'; /* Replace EOL with new line */
writepos++;
struct sockaddr_in addr_from = { 0, };
struct unistimsession *cur = NULL;
int found = 0;
- int tmp = 0;
int dw_num_bytes_rcvd;
unsigned int size_addr_from;
#ifdef DUMP_PACKET
found = 1;
break;
}
- tmp++;
cur = cur->next;
}
ast_mutex_unlock(&sessionlock);
if (!(*curl = curl_easy_init()))
return -1;
- curl_easy_setopt(*curl, CURLOPT_NOSIGNAL, 1);
- curl_easy_setopt(*curl, CURLOPT_TIMEOUT, 180);
+ curl_easy_setopt(*curl, CURLOPT_NOSIGNAL, 1L);
+ curl_easy_setopt(*curl, CURLOPT_TIMEOUT, 180L);
curl_easy_setopt(*curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
curl_easy_setopt(*curl, CURLOPT_USERAGENT, AST_CURL_USER_AGENT);
stdtime/localtime.o: _ASTCFLAGS+=$(AST_NO_STRICT_OVERFLOW) -Wno-format-nonliteral
asterisk.o: _ASTCFLAGS+=$(LIBEDIT_INCLUDE)
+ast_expr2.o: _ASTCFLAGS+=-Wno-unused
ast_expr2f.o: _ASTCFLAGS+=-Wno-unused
astmm.o: _ASTCFLAGS+=$(call get_menuselect_cflags,MALLOC_DEBUG DEBUG_CHAOS)
astobj2.o astobj2_container.o astobj2_hash.o astobj2_rbtree.o: _ASTCFLAGS+=$(call get_menuselect_cflags,AO2_DEBUG)
{
int a;
int i,j,n1,r;
- int samples = 0;
int olen;
switch (fskd->state) {
a start bit, perhaps. This whole thing stinks! */
if (demodulator(fskd, &fskd->x1, GET_SAMPLE))
return -1;
- samples++;
for (;;) {
search_startbit2:
if (*len <= 0) {
fskd->state = STATE_SEARCH_STARTBIT2;
return 0;
}
- samples++;
if (demodulator(fskd, &fskd->x2, GET_SAMPLE))
return(-1);
#if 0
#if 0
printf("x1 = %5.5f ", fskd->x1);
#endif
- samples++;
}
/* x1 must be negative (start bit confirmation) */
{
int res = 0;
char fn[256] = "";
- int i=0;
-
if (!num) {
ast_copy_string(fn, "digits/0", sizeof(fn));
}
while (!res && num ) {
- i++;
if (num < 13) {
snprintf(fn, sizeof(fn), "digits/%d", num);
num = 0;
int cnt = 0;
unsigned int byte = 0;
unsigned int bits = 0;
- int incnt = 0;
while(*src && *src != '=' && (cnt < max)) {
/* Shift in 6 bits of input */
byte <<= 6;
byte |= (b2a[(int)(*src)]) & 0x3f;
bits += 6;
src++;
- incnt++;
/* If we have at least 8 bits left over, take that character
off the top */
if (bits >= 8) {
ael/ael_lex.o: _ASTCFLAGS+=-I. -Iael -Wno-unused $(AST_NO_FORMAT_TRUNCATION)
ael/ael.tab.o: ael/ael.tab.c ael/ael.tab.h ../include/asterisk/ael_structs.h
-ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -DYYENABLE_NLS=0
+ael/ael.tab.o: _ASTCFLAGS+=-I. -Iael -Wno-unused -DYYENABLE_NLS=0
ifneq ($(findstring REBUILD_PARSERS,$(MENUSELECT_CFLAGS)),)
ael/ael_lex.c: ael/ael.flex
$(CMD_PREFIX) (cd ael; $(BISON) -v -d ael.y)
ael/pval.o: ael/pval.c
+ael/pval.o: _ASTCFLAGS+=-Wno-unused
$(call MOD_ADD_C,res_ael_share,ael/ael_lex.c ael/ael.tab.c ael/pval.c)
$(call MOD_ADD_C,res_stasis,$(wildcard stasis/*.c))
struct prometheus_metric *metrics;
struct prometheus_metric **bridge_metrics;
char eid_str[32];
- int i, j, num_bridges, num_outputs = 0;
+ int j, num_bridges, num_outputs = 0;
struct prometheus_metric bridge_count = PROMETHEUS_METRIC_STATIC_INITIALIZATION(
PROMETHEUS_METRIC_GAUGE,
"asterisk_bridges_count",
/* Bridge dependent values */
it_bridges = ao2_iterator_init(bridges, 0);
- for (i = 0; (bridge = ao2_iterator_next(&it_bridges)); ao2_ref(bridge, -1), i++) {
+ for (; (bridge = ao2_iterator_next(&it_bridges)); ao2_ref(bridge, -1)) {
struct ast_bridge_snapshot *snapshot;
/* Invisible bridges don't get shown externally and have no snapshot */