mirror of https://github.com/hak5/openwrt.git
firmware-utils: fix various compiler warnings
mostly implicit defines due to missing includes plus one const that shouldn't be one. Signed-off-by: Felix Kaechele <felix@kaechele.ca> SVN-Revision: 47865lede-17.01
parent
0231d41352
commit
244173a093
|
@ -1,5 +1,6 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
#define IMG_SIZE 0x3e0000
|
#define IMG_SIZE 0x3e0000
|
||||||
|
|
|
@ -48,7 +48,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
const char *infile, *outfile;
|
const char *infile, *outfile;
|
||||||
FILE *in, *out;
|
FILE *in, *out;
|
||||||
static const uint8_t buf[4096];
|
static uint8_t buf[4096];
|
||||||
size_t elems;
|
size_t elems;
|
||||||
|
|
||||||
uint8_t properties;
|
uint8_t properties;
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
* gcc -lcrypto hlkcrypt.c -o hlkcrypt
|
* gcc -lcrypto hlkcrypt.c -o hlkcrypt
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -513,7 +513,7 @@ int srec2bin(int argc,char *argv[],int verbose)
|
||||||
return(1);
|
return(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
debug = TRUE;
|
debug = TRUE;
|
||||||
debug = FALSE;
|
debug = FALSE;
|
||||||
|
|
|
@ -7,12 +7,14 @@
|
||||||
*
|
*
|
||||||
* Author: Sandeep Mistry
|
* Author: Sandeep Mistry
|
||||||
*/
|
*/
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "cyg_crc.h"
|
#include "cyg_crc.h"
|
||||||
|
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <arpa/inet.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
Loading…
Reference in New Issue