Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
32bd409971
  1. 2
      crypto777/iguana_OS.c
  2. 4
      crypto777/iguana_utils.c
  3. 8
      iguana/peggy_ramkv.c

2
crypto777/iguana_OS.c

@ -881,7 +881,7 @@ int32_t OS_getline(int32_t waitflag,char *line,int32_t max,char *dispstr)
return((int32_t)strlen(line));
}
#endif
fgets(line,max,stdin);
if ( fgets(line,max,stdin) >= 0 )
line[strlen(line)-1] = 0;
return((int32_t)strlen(line));
}

4
crypto777/iguana_utils.c

@ -668,7 +668,7 @@ void reverse_hexstr(char *str)
free(rev);
}
int32_t nn_base64_decode (const char *in, size_t in_len,uint8_t *out, size_t out_len)
/*int32_t nn_base64_decode (const char *in, size_t in_len,uint8_t *out, size_t out_len)
{
uint32_t ii,io,rem,v; uint8_t ch;
// Unrolled lookup of ASCII code points. 0xFF represents a non-base64 valid character.
@ -778,7 +778,7 @@ int32_t nn_base64_encode (const uint8_t *in, size_t in_len,char *out, size_t out
out [io] = '\0';
return io;
}
}*/
/*
NXT address converter,

8
iguana/peggy_ramkv.c

@ -165,8 +165,12 @@ long ramkv777_save(struct ramkv777 *kv)
if ( retval > 0 )
{
sprintf(oldfname,"%s.%u",kv->name,(uint32_t)time(NULL));
sprintf(cmd,"%s %s %s",OS_mvstr(),kv->name,oldfname), system(cmd);
sprintf(cmd,"%s %s %s",OS_mvstr(),fname,kv->name), system(cmd);
sprintf(cmd,"%s %s %s",OS_mvstr(),kv->name,oldfname);
if ( system(cmd) != 0 )
printf("error issuing.(%s)\n",cmd);
sprintf(cmd,"%s %s %s",OS_mvstr(),fname,kv->name);
if ( system(cmd) != 0 )
printf("error issuing.(%s)\n",cmd);
}
return(retval);
}

Loading…
Cancel
Save