logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/etc_portage.git

bam-0.4.0-no-datetime.patch (967B)


  1. diff --git a/src/main.c.old b/src/main.c
  2. index 0b1786c..c8462d1 100644
  3. --- a/src/main.c.old
  4. +++ b/src/main.c
  5. @@ -759,7 +759,7 @@ static void print_help()
  6. printf(" %-20s %s\n", options[j].sw, options[j].desc);
  7. }
  8. printf("\n");
  9. - printf("bam version " BAM_VERSION_STRING_COMPLETE ". built "__DATE__" "__TIME__" using " LUA_VERSION "\n");
  10. + printf("bam version " BAM_VERSION_STRING_COMPLETE ". using " LUA_VERSION "\n");
  11. printf("by Magnus Auvinen (magnus.auvinen@gmail.com)\n");
  12. printf("\n");
  13. diff --git a/src/cache.c.old b/src/cache.c
  14. index c83df36..d9e1463 100644
  15. --- a/src/cache.c.old
  16. +++ b/src/cache.c
  17. @@ -25,7 +25,7 @@ static char bamheader[8] = {
  18. static void cache_setup_header()
  19. {
  20. /* save a hashed version of the date and time in the header */
  21. - unsigned hash = string_hash(__DATE__ __TIME__);
  22. + unsigned hash = string_hash("Jan 13 1984 12:30:30");
  23. bamheader[5] = hash&0xff;
  24. bamheader[6] = (hash>>8)&0xff;
  25. bamheader[7] = (hash>>16)&0xff;