protocol

protocol tests
Log | Files | Refs | Submodules | README | git clone https://git.ne02ptzero.me/git/protocol

commit 8086f6468f48d95a19c8d49a59cf4193728fd7fc
parent dbe6c6cfc0a8497145cfab4f6e193612f75dd17a
Author: Ne02ptzero <louis@ne02ptzero.me>
Date:   Mon, 27 Mar 2017 17:14:11 +0200

Fix(Package): Wrong conversion for float

Diffstat:
Msrc/client_test.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/client_test.c b/src/client_test.c @@ -26,13 +26,13 @@ SQL_CALLBACK_DEF(pkg_cb) { else if (strcmp(col_name[i], "archive") == 0) pkg->archive = strdup(col_txt[i]); else if (strcmp(col_name[i], "SBU") == 0) - pkg->sbu = strtoull(col_txt[i], (char **)NULL, 10); + pkg->sbu = atof(col_txt[i]); else if (strcmp(col_name[i], "dependencies") == 0) pkg->dependencies = strdup(col_txt[i]); else if (strcmp(col_name[i], "archiveSize") == 0) - pkg->arch_size = strtoull(col_txt[i], (char **)NULL, 10); + pkg->arch_size = atof(col_txt[i]); else if (strcmp(col_name[i], "installedSize") == 0) - pkg->inst_size = strtoull(col_txt[i], (char **)NULL, 10); + pkg->inst_size = atof(col_txt[i]); else if (strcmp(col_name[i], "archiveHash") == 0) pkg->arch_hash = strdup(col_txt[i]); else if (strcmp(col_name[i], "state") == 0)