Comments (10)
Are you trying to build this on OSX?
from longs.
yes, is this relevant? sqlite3 is certainly OK on OSX, not sure about wafer
from longs.
do you know where BUFFLEN comes from?
from longs.
yes, is this relevant?
Yes:
#ifndef __linux__
That part of the code never got tested. It's a bug. We're sorry. We'll fix it.
from longs.
This should be fixed now. Can you please verify?
from longs.
hm..seems to be the same after I pulled
7 warnings generated.
cc -W -Wall -O2 -Wno-unused-parameter -g -pthread -c -o waferapi.o waferapi.c
waferapi.c:268:14: error: use of undeclared identifier 'BUFFLEN'
char buf[BUFFLEN];
^
waferapi.c:270:45: error: use of undeclared identifier 'BUFFLEN'
ssize_t bytes_read = read(read_fd, buf, BUFFLEN);
^
waferapi.c:271:45: error: use of undeclared identifier 'cbuf'; did you mean 'buf'?
ssize_t bytes_written = write(write_fd, cbuf, bytes_read);
^~~~
buf
waferapi.c:268:10: note: 'buf' declared here
char buf[BUFFLEN];
^
I also tried deleting all .o files and build artifacts
from longs.
I think I didn't push the changes. BUFFLEN shouldn't be there at all. Would you mind trying again? I'm really sorry about this.
from longs.
Thanks a lot of the help
Now it's that:
waferapi.c:271:45: error: use of undeclared identifier 'cbuf'; did you mean 'buf'?
ssize_t bytes_written = write(write_fd, cbuf, bytes_read);
^~~~
buf
waferapi.c:268:10: note: 'buf' declared here
char buf[MAX_BUFFER_SIZE];
^
Should I replace buf with cbuf? Doesn't look that way
from longs.
Replaced cbuf with buf. Works now
from longs.
Thanks for the PR.
from longs.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longs.