Skip to content

Commit

Permalink
Clean: remove outdated comment and unify return type
Browse files Browse the repository at this point in the history
  • Loading branch information
sgliner-ledger committed Feb 27, 2024
1 parent 71a2222 commit adb6d44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/monero_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ int monero_vamount2str(unsigned char *binary, char *str, unsigned int str_len);
/** binary little endian unsigned int amount to str */
int monero_bamount2str(unsigned char *binary, char *str, size_t binary_len, unsigned int str_len);
/** uint64 amount to str */
int monero_amount2str(uint64_t xmr, char *str, unsigned int str_len);
unsigned int monero_amount2str(uint64_t xmr, char *str, unsigned int str_len);

/** uint64 amount to str */
unsigned int monero_uint642str(uint64_t val, char *str, unsigned int str_len);
Expand Down
4 changes: 1 addition & 3 deletions src/monero_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,6 @@ int monero_rng_mod_order(unsigned char *r, size_t r_len) {
/* ----------------------------------------------------------------------- */
/* --- --- */
/* ----------------------------------------------------------------------- */
/* return 0 if ok, 1 if missing decimal */
unsigned int monero_uint642str(uint64_t val, char *str, unsigned int str_len) {
char stramount[22];
unsigned int offset, len;
Expand Down Expand Up @@ -1312,8 +1311,7 @@ unsigned int monero_uint642str(uint64_t val, char *str, unsigned int str_len) {
/* ----------------------------------------------------------------------- */
/* --- --- */
/* ----------------------------------------------------------------------- */
/* return 0 if ok, 1 if missing decimal */
int monero_amount2str(uint64_t xmr, char *str, unsigned int str_len) {
unsigned int monero_amount2str(uint64_t xmr, char *str, unsigned int str_len) {
// max uint64 is 18446744073709551616, aka 20 char, plus dot
char stramount[22];
unsigned int offset, len;
Expand Down

0 comments on commit adb6d44

Please sign in to comment.