[DGD] Errors in extra.c

Lord Lerkista lerkista at planetatierra.net
Fri Jan 11 20:08:45 CET 2002


When i try to compile the driver (1.2.35) i get that:

extra.c: In function `kf_sendmail':
extra.c:932: warning: passing arg 1 of `str_del' from incompatible 
pointer type
extra.c:932: too few arguments to function `str_del'
extra.c:933: warning: passing arg 1 of `str_del' from incompatible 
pointer type
extra.c:933: too few arguments to function `str_del'
extra.c:934: warning: passing arg 1 of `str_del' from incompatible 
pointer type
extra.c:934: too few arguments to function `str_del'
make[1]: *** [extra.o] Error 1
make: *** [a.out] Error 2

the function is:

# ifdef FUNCDEF
FUNCDEF("sendmail", kf_sendmail, pt_sendmail)
# else
char pt_sendmail[] = { C_TYPECHECKED | C_STATIC, T_VOID, 4, T_STRING,
T_STRING, T_STRING, T_STRING };

int kf_sendmail(f)
register frame *f;
{
         FILE *fd;
         char *command;
         command = malloc(128);
         sprintf(command,"mail -s \"%s\" %s <%s -f %s",
			
	f->sp[3].u.string->text,f->sp[2].u.string->text,f->sp[1].u.string->text,
				f->sp[0].u.string->text);
         system(command);
         str_del((f->sp++)->u.string);
         str_del((f->sp++)->u.string);
         str_del((f->sp++)->u.string);
         free(command);
         return 0;
}
#endif

i have the same code with 1.2 and don't give me any error, only when i 
update the driver to 1.2.35
how can i fix that??

_________________________________________________________________
List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list