albertobsd / ecctools

Small collection of tools written in C for ECC and bitcoin
MIT License
54 stars 36 forks source link

error compiling keygen.c #29

Open Dr-Shams opened 1 year ago

Dr-Shams commented 1 year ago

i am getting errors compiling keygen.c

keygen.c:152:66: warning: unknown conversion type character ‘\x0a’ in format [-Wformat=]
  152 |                                 fprintf(stderr,"OpenSSL error: %l\n",err);
      |                                                                  ^~
keygen.c:152:48: warning: too many arguments for format [-Wformat-extra-args]
  152 |                                 fprintf(stderr,"OpenSSL error: %l\n",err);
      |                                                ^~~~~~~~~~~~~~~~~~~~~
keygen.c:135:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
  135 |                         fread(buffer_key,1,bytes,fd);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:145:25: warning: ignoring return value of ‘fread’ declared with attribute ‘warn_unused_result’ [-Wunused-resul
]
  145 |                         fread(buffer_key,1,bytes,fd);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
keygen.c:158:25: warning: ignoring return value of ‘getrandom’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  158 |                         getrandom(buffer_key,bytes,GRND_NONBLOCK);
albertobsd commented 1 year ago

OK, those are only Warnings

keygen.c:145:25: warning:

i am going to try to correct them, but your program is already compiled you can try to run it

./keygen -b 256