Skip to content

Commit

Permalink
Changing size variable from ssize_t to long long to enable support fo…
Browse files Browse the repository at this point in the history
…r large files.
  • Loading branch information
bingmann committed Mar 20, 2010
1 parent 172be6d commit aeb6abe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# $Id$

AM_CFLAGS = -W -Wall -pedantic
AM_CFLAGS = -W -Wall -pedantic -Wno-long-long

bin_PROGRAMS = digup

Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AM_CFLAGS = -W -Wall -pedantic
AM_CFLAGS = -W -Wall -pedantic -Wno-long-long
digup_SOURCES = digup.c \
rbtree.c rbtree.h \
digest.c digest.h \
Expand Down
8 changes: 4 additions & 4 deletions src/digup.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct FileInfo
{
enum FileStatus status;
time_t mtime;
ssize_t size;
long long size;
char* error;
digest_result* digest;
char* symlink; /* target actually */
Expand Down Expand Up @@ -2110,9 +2110,9 @@ bool cmd_write(void)
if (fileinfo->symlink)
{
if (needescape_filename(&fileinfo->symlink)) /* may replace the symlink string */
fprintfcrc(&crc, sumfile, "#: mtime %ld size %d target\\ %s\n", fileinfo->mtime, fileinfo->size, fileinfo->symlink);
fprintfcrc(&crc, sumfile, "#: mtime %ld size %lld target\\ %s\n", fileinfo->mtime, fileinfo->size, fileinfo->symlink);
else
fprintfcrc(&crc, sumfile, "#: mtime %ld size %d target %s\n", fileinfo->mtime, fileinfo->size, fileinfo->symlink);
fprintfcrc(&crc, sumfile, "#: mtime %ld size %lld target %s\n", fileinfo->mtime, fileinfo->size, fileinfo->symlink);

if (needescape_filename(&filename)) /* may replace the filename string */
fprintfcrc(&crc, sumfile, "#: symlink\\ %s\n", filename);
Expand All @@ -2121,7 +2121,7 @@ bool cmd_write(void)
}
else
{
fprintfcrc(&crc, sumfile, "#: mtime %ld size %d\n", fileinfo->mtime, fileinfo->size);
fprintfcrc(&crc, sumfile, "#: mtime %ld size %lld\n", fileinfo->mtime, fileinfo->size);

if (needescape_filename(&filename)) /* may replace the filename string */
fprintfcrc(&crc, sumfile, "\\");
Expand Down

0 comments on commit aeb6abe

Please sign in to comment.