FreeCalypso > hg > freecalypso-tools
comparison rvinterf/tmsh/l1cmd.c @ 123:bc23c1cd30ae
fc-tmsh: rftw format consistency check implemented
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 19 Feb 2017 09:07:52 +0000 |
parents | cad9129d0f03 |
children | 8e37317f5de0 |
comparison
equal
deleted
inserted
replaced
122:cad9129d0f03 | 123:bc23c1cd30ae |
---|---|
316 cmdpkt[1] = RF_TABLE_WRITE; | 316 cmdpkt[1] = RF_TABLE_WRITE; |
317 cmdpkt[2] = index; | 317 cmdpkt[2] = index; |
318 rc = read_rf_table(argv[2], cmdpkt + 3, &format, &size); | 318 rc = read_rf_table(argv[2], cmdpkt + 3, &format, &size); |
319 if (rc) | 319 if (rc) |
320 return(rc); | 320 return(rc); |
321 if (argc > 3) { | |
322 if (strcmp(argv[3], "force")) { | |
323 printf("error: unexpected 3rd argument\n"); | |
324 return(ERROR_USAGE); | |
325 } | |
326 } else { | |
327 rc = rftw_index_format_check(index, format); | |
328 if (rc) | |
329 return(rc); | |
330 } | |
321 send_etm_cmd(cmdpkt, size + 2); | 331 send_etm_cmd(cmdpkt, size + 2); |
322 return(0); | 332 return(0); |
323 } | 333 } |