/* * Mausezahn - A fast versatile traffic generator * Copyright (C) 2008-2010 Herbert Haas * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU General Public License version 2 as published by the * Free Software Foundation. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License along with * this program; if not, see http://www.gnu.org/licenses/gpl-2.0.html * */ #include "mz.h" #include "cli.h" #include "mops.h" int cmd_dns_query(struct cli_def *cli, const char *command, char *argv[], int argc) { return CLI_OK; } int cmd_dns_answer(struct cli_def *cli, const char *command, char *argv[], int argc) { return CLI_OK; } int cmd_dns_ttl(struct cli_def *cli, const char *command, char *argv[], int argc) { return CLI_OK; } int cmd_dns_end(struct cli_def *cli, const char *command, char *argv[], int argc) { char prompt[16]; sprintf(prompt, "pkt-%i",clipkt->id); cli_set_configmode(cli, MZ_MODE_PACKET, prompt); return CLI_OK; } put type='submit' value='switch'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-04-22 12:55:24 +0300
committerMark Brown <broonie@kernel.org>2016-04-22 16:25:41 +0100
commit989ffc7bd6b0f5ea3423631981f87fde495a8acb (patch)
tree8126227b48426a7a5aaaaf11f4010d3774f36e38
parent3270ac230f660843a7f7d631746ee2c8ee63f347 (diff)
spi: pic32-sqi: silence array overflow warning
We read one element beyond the end of the array when we access "rdesc[i + 1]" so it causes a static checker warning. It's harmless because we write over it again on the next line. But let's just silence the warning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Purna Chandra Mandal <purna.mandal@microchip.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat