kiwmic: Read reply from kiwmi

This commit is contained in:
buffet 2019-04-10 11:42:06 +02:00
parent 9ed779417f
commit 0191435bd4

View file

@ -57,7 +57,13 @@ main(int argc, char **argv)
fprintf(socket_file, "%c", '\0');
fflush(socket_file);
// TODO: read result
int c;
while ((c = getc(socket_file)) != '\0') {
putchar(c);
if (c == '\n') {
fflush(stdout);
}
}
fclose(socket_file);
}