Error in code, old C style

Hello everyone.
I am trying to build a custom call in FreeBSD 4.2 just as a proof of concept. I have no idea about C. Can anybody help me fixing these errors.


struct syshello_args
char *buf;

int sys_myhello(p, uap)
struct proc* p; struct syshello_args* uap;
sprintf(uap->buf, "Hello");
return 0;

Thank you
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!