Well, in actuality, those are warnings, not errors, so the code should be 
still compiling and it should work correctly.  In fact, you wouldn't even 
seem them if you didn't use the "-Wall" flag with gcc.

But if you'd like to make them go away, I *believe* it should be as simple 
as modifing line 208 and change this:
"Message-ID: <%lu.%lu.blah>\n"
To this:
"Message-ID: <%lu:%u.blah>\n"

Then, on line 398, change:
"A%lu.%u"
To:
"A%u.%u"

Basically, the warning you're getting is from ?printf looking for a long 
unsigned int, while the getpid() function used in both of those returns (at 
least on FreeBSD) an int.

But again, the code should work correctly without this fix.

Hope this helps,
- Ben Schumacher

At 10:28 PM 7/18/00 -0700, Sumith Ail wrote:
>Dear Sir,
>
>I am trying to install Autoresponder which I've
>downloaded from www.qmail.org
>
>but it gives the following error.. when I try to
>compile it on my RH Linux 6.2 on Pentium 2 PC.
>
>[root@tech /root]# gcc -Wall -o autorespond
>autorespond.c
>autorespond.c: In function send_message':
>autorespond.c:212: warning: long unsigned int format,
>unsigned int arg (arg
>10)
>autorespond.c: In function main':
>autorespond.c:398: warning: long unsigned int format,
>unsigned int arg (arg
>3)
>[root@tech /root]#
>
>Any Suggestions. I've got qmail installed in
>/var/qmail and vpopmail installed with mysql.
>
>Thanx
>Sumith
>
>
>__________________________________________________
>Do You Yahoo!?
>Get Yahoo! Mail � Free email you can access from anywhere!
>http://mail.yahoo.com/

Reply via email to