1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-18 22:43:53 +01:00

fix some warnings

SVN-Revision: 12707
This commit is contained in:
Felix Fietkau 2008-09-25 18:24:53 +00:00
parent 5a0a3cbc00
commit a38c409d6a
2 changed files with 4 additions and 2 deletions

@ -247,7 +247,7 @@ void mtd_parse_jffs2data(const char *buf, const char *dir)
struct jffs2_raw_dirent *de = (struct jffs2_raw_dirent *) node;
/* is this the right directory name and is it a subdirectory of / */
if (*dir && (de->pino == 1) && !strncmp(de->name, dir, de->nsize))
if (*dir && (de->pino == 1) && !strncmp((char *) de->name, dir, de->nsize))
target_ino = de->ino;
/* store the last inode and version numbers for adding extra files */

@ -138,9 +138,11 @@ int mtd_write_buffer(int fd, const char *buf, int offset, int length)
static int
image_check(int imagefd, const char *mtd)
{
int ret = 0;
#ifdef target_brcm
return trx_check(imagefd, mtd, buf, &buflen);
ret = trx_check(imagefd, mtd, buf, &buflen);
#endif
return ret;
}
static int mtd_check(const char *mtd)