Changeset 1433ecda in mainline for uspace/app/untar
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/app/untar
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/untar/main.c
r47b2d7e3 r1433ecda 40 40 #include "tar.h" 41 41 42 static size_t get_block_count(size_t bytes) { 42 static size_t get_block_count(size_t bytes) 43 { 43 44 return (bytes + TAR_BLOCK_SIZE - 1) / TAR_BLOCK_SIZE; 44 45 } -
uspace/app/untar/tar.c
r47b2d7e3 r1433ecda 41 41 #include "tar.h" 42 42 43 tar_type_t tar_type_parse(const char type) { 43 tar_type_t tar_type_parse(const char type) 44 { 44 45 switch (type) { 45 46 case '0': … … 53 54 } 54 55 55 const char *tar_type_str(tar_type_t type) { 56 const char *tar_type_str(tar_type_t type) 57 { 56 58 switch (type) { 57 59 case TAR_TYPE_UNKNOWN:
Note:
See TracChangeset
for help on using the changeset viewer.