FreeCalypso > hg > freecalypso-tools
comparison rvinterf/etmsync/fsmisc.c @ 12:869ce9f61a67
fc-fsio format command: buglet in the usage error handling
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 03 Oct 2016 05:54:21 +0000 |
parents | e7502631a0f9 |
children | e434df27e4d9 |
comparison
equal
deleted
inserted
replaced
11:21eec7569eb8 | 12:869ce9f61a67 |
---|---|
27 int rc, slen; | 27 int rc, slen; |
28 | 28 |
29 slen = strlen(argv[1]); | 29 slen = strlen(argv[1]); |
30 if (slen >= TMFFS_STRING_SIZE) { | 30 if (slen >= TMFFS_STRING_SIZE) { |
31 printf("error: argument exceeds string length limit\n"); | 31 printf("error: argument exceeds string length limit\n"); |
32 return; | 32 return(ERROR_USAGE); |
33 } | 33 } |
34 dp = cmdpkt + 1; | 34 dp = cmdpkt + 1; |
35 *dp++ = ETM_FFS2; | 35 *dp++ = ETM_FFS2; |
36 *dp++ = TMFFS_FORMAT; | 36 *dp++ = TMFFS_FORMAT; |
37 *dp++ = slen + 1; | 37 *dp++ = slen + 1; |