Revert "crash-pipe: Fix write the coredump to the file" 35/180535/1
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 30 May 2018 11:31:21 +0000 (13:31 +0200)
committerMateusz Moscicki <m.moscicki2@partner.samsung.com>
Wed, 30 May 2018 11:40:13 +0000 (13:40 +0200)
This reverts commit 70c1372b5a85a64d5ea7c5bb20b99429213942be.

Change-Id: I553b4c6ef2e5aa9cdc80e4d58ecd318dc0a2d532

src/crash-pipe/crash-pipe.c

index e6759c3..1ba2f3a 100644 (file)
@@ -32,7 +32,6 @@
 #include <fcntl.h>
 #include <getopt.h>
 #include <limits.h>
-#include <stdint.h>
 
 enum {
        OPT_HELP,
@@ -75,7 +74,7 @@ static int copy_fd_splice(int in, int out)
        ssize_t s;
        _Bool copied_data = 0;
 
-       const size_t max_splice = SIZE_MAX;
+       const ssize_t max_splice = SSIZE_MAX;
 
        do {
                s = splice(in, NULL, out, NULL, max_splice, SPLICE_F_MOVE);