Skip to content
Snippets Groups Projects
Commit 22ee4868 authored by deuce's avatar deuce
Browse files

Add comment regarding direct read of unpacked struct.

parent 92cb0a97
Branches
Tags
No related merge requests found
......@@ -51,6 +51,7 @@ BOOL DLLCALL getstats(scfg_t* cfg, char node, stats_t* stats)
return(FALSE);
}
lseek(file,4L,SEEK_SET); /* Skip update time/date */
/* TODO: Direct read of unpacked struct */
read(file,stats,sizeof(stats_t));
close(file);
return(TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment