$(call cc,mkplanexfw sha1)
$(call cc,mktplinkfw mktplinkfw-lib md5, -Wall -fgnu89-inline)
$(call cc,mktplinkfw2 mktplinkfw-lib md5, -fgnu89-inline)
- $(call cc,tplink-safeloader md5, -Wall)
+ $(call cc,tplink-safeloader md5, -Wall --std=gnu99)
$(call cc,pc1crypt)
$(call cc,osbridge-crc)
$(call cc,wrt400n cyg_crc32)
unsigned long base,
unsigned long size)
{
+ int ptr;
/* check if the list has a free entry */
- for (int ptr=0; ptr<max_entries; ptr++, part_list++) {
+ for (ptr = 0; ptr < max_entries; ptr++, part_list++) {
if (part_list->name == NULL &&
part_list->base == 0 &&
part_list->size == 0)
break;
}
- for (int i=0; i<=4; i++) {
+ for (int i = 0; i <= 4; i++) {
if (end_part <= ptr)
break;
error(1, 0, "Error can not read the partition table (fwup-ptn)");
}
- for (int i=0; i<max_entries; i++) {
+ for (int i = 0; i < max_entries; i++) {
if (entries[i].name == NULL &&
entries[i].base == 0 &&
entries[i].size == 0)
struct flash_partition_entry *entries, size_t max_entries,
const char *name, const char *error_msg)
{
- for (int i=0; i<max_entries; i++, entries++) {
+ for (int i = 0; i < max_entries; i++, entries++) {
if (strcmp(entries->name, name) == 0)
return entries;
}