]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
Merge pull request #239 in SNORT/snort3 from ~JOCORNET/snort3:file_api_quickfix to...
authorRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 4 Feb 2016 22:26:03 +0000 (17:26 -0500)
committerRuss Combs (rucombs) <rucombs@cisco.com>
Thu, 4 Feb 2016 22:26:03 +0000 (17:26 -0500)
Squashed commit of the following:

commit 8b6ed886036a2e6bdf86a07aff0161503d363447
Author: Joel Cornett <joel.cornett@gmail.com>
Date:   Thu Feb 4 17:22:50 2016 -0500

    fixed mismatched return types in FileCapture::capture_size() signature

src/file_api/file_capture.cc
src/file_api/file_capture.h

index fa312e9be1c26be7a67684f9cb56dc7dff7f5e16..651bcd4d08a5b4287dd2ade8689c38c458a9c589 100644 (file)
@@ -399,13 +399,8 @@ FileCaptureBlock* FileCapture::get_file_data(uint8_t** buff, int* size)
     return (current_block);
 }
 
-/*
- * Get the file size captured in the file buffer
- *
- * Returns:
- *   the size of file
- */
-size_t FileCapture::capture_size()
+// Get the file size captured in the file buffer
+uint64_t FileCapture::capture_size() const
 {
     return file_size;
 }
index 84bba83b9d18fc496430ee9e7e9d6afac8fc7420..790df8623350b2676dbad5dc4880eed11745bc1a 100644 (file)
@@ -70,7 +70,7 @@ public:
     // Get the file size captured in the file buffer
     // Returns:
     //   the size of file
-    uint64_t capture_size();
+    uint64_t capture_size() const;
 
     // Store files on local disk
     void store_file(FileContext *file);