Loading examples/app.c +7 −1 Original line number Diff line number Diff line Loading @@ -27,8 +27,14 @@ int main() { printf("Hello, World! I'm the app \n"); if( push_job() < 0 ){ struct norns_iotd iotd = { .ni_tid = 0, }; if(norns_transfer(&iotd) != 0) { printf("Error with push job \n"); } return 0; } lib/norns.c +3 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ void __norns_finit(void){ close(sock); } int push_job(){ int norns_transfer(struct norns_iotd* iotdp) { /* * return -1 on error */ Loading @@ -90,4 +90,6 @@ int push_job(){ perror("writing on stream socket"); } close(sock); return 0; } Loading
examples/app.c +7 −1 Original line number Diff line number Diff line Loading @@ -27,8 +27,14 @@ int main() { printf("Hello, World! I'm the app \n"); if( push_job() < 0 ){ struct norns_iotd iotd = { .ni_tid = 0, }; if(norns_transfer(&iotd) != 0) { printf("Error with push job \n"); } return 0; }
lib/norns.c +3 −1 Original line number Diff line number Diff line Loading @@ -77,7 +77,7 @@ void __norns_finit(void){ close(sock); } int push_job(){ int norns_transfer(struct norns_iotd* iotdp) { /* * return -1 on error */ Loading @@ -90,4 +90,6 @@ int push_job(){ perror("writing on stream socket"); } close(sock); return 0; }