diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-06-23 13:02:52 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-06-23 13:02:52 +0200 |
commit | 1ddf269c699c4028d4f5ae580b22cad0dd62d274 (patch) | |
tree | 288d2af62a6ed88b75878472999c607c42c68b0e /src/pieces.c | |
parent | dc910a5317b10bfa060d0e58bf01ce3ccdb71b13 (diff) | |
download | 0xFFFF-1ddf269c699c4028d4f5ae580b22cad0dd62d274.tar.bz2 |
Prepair piece structure for device & hw revisions
Diffstat (limited to 'src/pieces.c')
-rw-r--r-- | src/pieces.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pieces.c b/src/pieces.c index 16cacce..5f850d2 100644 --- a/src/pieces.c +++ b/src/pieces.c @@ -52,7 +52,9 @@ int add_piece(char *piece) pcs[pcs_n].name = strdup(file); pcs[pcs_n].type = strdup(piece); - pcs[pcs_n].vers = NULL; // TODO version string not yet supported + pcs[pcs_n].device = NULL; + pcs[pcs_n].hwrevs = NULL; + pcs[pcs_n].version = NULL; // TODO version string not yet supported } else { /*/ autodetect piece type */ pcs[pcs_n].type = (char *)fpid_file(piece); @@ -66,7 +68,9 @@ int add_piece(char *piece) } else { pcs[pcs_n].name = strdup(piece); pcs[pcs_n].type = strdup(pcs[pcs_n].type); - pcs[pcs_n].vers = NULL; + pcs[pcs_n].device = NULL; + pcs[pcs_n].hwrevs = NULL; + pcs[pcs_n].version = NULL; } } |