summaryrefslogtreecommitdiffstats
path: root/fpart/src/command.c
diff options
context:
space:
mode:
authorPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
committerPatrick Williams <williamspatrick@gmail.com>2015-04-22 15:11:25 -0500
commit2e790b8409071ca15767d822dabfa8e60f12c6e2 (patch)
tree14a358904909e8fe0f631d414333c26de81e5042 /fpart/src/command.c
parentaa8354ef7ee6606fe32453e3eedce9af8038230a (diff)
parent76ce4aadee1a7a890001affed54a0fb1110b1793 (diff)
downloadffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.tar.gz
ffs-2e790b8409071ca15767d822dabfa8e60f12c6e2.zip
Merge pull request #4 from anoo1/master
Support to compile in 64bit for Ubuntu Little Endian
Diffstat (limited to 'fpart/src/command.c')
-rw-r--r--fpart/src/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpart/src/command.c b/fpart/src/command.c
index 78b33a0..3f25abb 100644
--- a/fpart/src/command.c
+++ b/fpart/src/command.c
@@ -99,7 +99,7 @@ int parse_offset(const char *str, off_t *offset)
return 0;
}
-int parse_size(const char *str, size_t *size)
+int parse_size(const char *str, uint32_t *size)
{
assert(size != NULL);
@@ -136,7 +136,7 @@ int parse_size(const char *str, size_t *size)
return 0;
}
-int parse_number(const char *str, size_t *num)
+int parse_number(const char *str, uint32_t *num)
{
assert(num != NULL);
@@ -240,7 +240,7 @@ FILE *fopen_generic(const char *path, const char *mode, int debug)
assert(mode != NULL);
FILE *file = NULL;
- size_t port = 0;
+ uint32_t port = 0;
if (strncasecmp(path, "aa:", 3) == 0) {
if (parse_number(path + 3, &port) == 0)
OpenPOWER on IntegriCloud