From owner-freebsd-questions Sat Dec 16 14:19:52 2000 From owner-freebsd-questions@FreeBSD.ORG Sat Dec 16 14:19:51 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by hub.freebsd.org (Postfix) with ESMTP id 64AA337B400 for ; Sat, 16 Dec 2000 14:19:50 -0800 (PST) Received: from m559-mp1-cvx1c.gui.ntl.com ([62.252.14.47]) by mta06-svc.ntlworld.com (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20001216221947.VGZL15131.mta06-svc.ntlworld.com@m559-mp1-cvx1c.gui.ntl.com>; Sat, 16 Dec 2000 22:19:47 +0000 Date: Sat, 16 Dec 2000 22:22:54 +0000 (GMT) From: George Reid X-Sender: geeorgy@sobek.openirc.co.uk To: Dudecom3 Dudecom3 Cc: freebsd-questions@freebsd.org Subject: Re: Compiling prob In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 16 Dec 2000, Dudecom3 Dudecom3 wrote: > IP.c: In function `main': > IP.c:7: storage size of `sin' isn't known -> WTF? :)) > IP.c:5: warning: return type of `main' is not `int' You need to #include for struct sockaddr_in. main() should be declared as returning an int. G "And then it comes to be that the soothing light at the end of your tunnel was just a freight train, comin' your way." George Reid * greid@ukug.uk.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message