Howdy, Stranger!

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

Categories

Error in code, old C style

Logan89Logan89 Member Posts: 2
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.

#include
#include

struct syshello_args
{
char *buf;
};

int sys_myhello(p, uap)
struct proc* p; struct syshello_args* uap;
{
sprintf(uap->buf, "Hello");
p->p_retval[0]=0;
return 0;
}

Thank you
Sign In or Register to comment.