]> git.saurik.com Git - apt-legacy.git/blobdiff - ftparchive/writer.cc
Checkpointing APT notes and fixed a minor error issue in new memory map code.
[apt-legacy.git] / ftparchive / writer.cc
index ea242d6af13623f47c2abd165beb6b7910e79023..25ae2b0cfd3dd4d29bfdabe0ddb87d5b2c521eab 100644 (file)
    ##################################################################### */
                                                                        /*}}}*/
 // Include Files                                                       /*{{{*/
-#ifdef __GNUG__
-#pragma implementation "writer.h"
-#endif
-
 #include "writer.h"
     
 #include <apti18n.h>
@@ -32,6 +28,7 @@
 #include <ftw.h>
 #include <fnmatch.h>
 #include <iostream>
+#include <memory>
     
 #include "cachedb.h"
 #include "apt-ftparchive.h"
@@ -632,7 +629,7 @@ bool SourcesWriter::DoPackage(string FileName)
    
    // Add the dsc to the files hash list
    char Files[1000];
-   snprintf(Files,sizeof(Files),"\n %s %lu %s\n %s",
+   snprintf(Files,sizeof(Files),"\n %s %llu %s\n %s",
            string(MD5.Result()).c_str(),St.st_size,
            flNotDir(FileName).c_str(),
            Tags.FindS("Files").c_str());