Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/astro/fowsr/files/patch-fowsr.c
16462 views
1
--- fowsr.c.orig 2016-09-18 13:31:19 UTC
2
+++ fowsr.c
3
@@ -321,6 +321,7 @@ void CWS_Cache(char isStoring)
4
5
if (isStoring == WS_CACHE_READ) {
6
if (f=fopen(fname,"rb")) {
7
+ printf("using cache file %s\n", fname);
8
n=fread(&m_previous_timestamp,sizeof(m_previous_timestamp),1,f);
9
n=fread(m_buf,sizeof(m_buf[0]),WS_BUFFER_SIZE,f);
10
}
11
@@ -691,6 +692,7 @@ int CWF_Write(char arg, const char* fnam
12
f = fopen(s1,"a+t");
13
if(!f)
14
return -1;
15
+ printf("writing to %s\n", s1);
16
}
17
18
if((old_pos==0)||(old_pos==0xFFFF)) //cachefile empty or empty eeprom was read
19
20