no_inline_calcnow.diff 746 B

12345678910111213141516171819202122232425262728293031
  1. diff -Naur sbagen-1.4.5/sbagen.c sbagen-1.4.5.patched/sbagen.c
  2. --- sbagen-1.4.5/sbagen.c 2011-08-07 20:12:21.000000000 -0400
  3. +++ sbagen-1.4.5.patched/sbagen.c 2022-03-22 22:02:03.585606715 -0400
  4. @@ -181,7 +181,7 @@
  5. void warn(char *fmt, ...) ;
  6. void * Alloc(size_t len) ;
  7. char * StrDup(char *str) ;
  8. -inline int calcNow() ;
  9. +int calcNow() ;
  10. void loop() ;
  11. void outChunk() ;
  12. void corrVal(int ) ;
  13. @@ -1207,7 +1207,7 @@
  14. time_ref_ms= 1000*tt->tm_sec + 60000*tt->tm_min + 3600000*tt->tm_hour;
  15. }
  16. -inline int
  17. +int
  18. calcNow() {
  19. struct timeval tv;
  20. if (0 != gettimeofday(&tv, 0)) error("Can't get current time");
  21. @@ -1217,7 +1217,7 @@
  22. #endif
  23. #ifdef WIN_TIME
  24. -inline int
  25. +int
  26. calcNow() {
  27. SYSTEMTIME st;
  28. GetLocalTime(&st);