Ethereal-users: [Ethereal-users] Win32 build error (tethereal.c)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: David O Shea <david_oshea@xxxxxxxxxxxxx>
Date: 20 Apr 2001 12:34:12 -0700
I get the following error when I try to compile ethereal 0.8.17-a:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
Copyright (C) Microsoft Corp 1984-1997. All rights reserved.

tethereal.c
.\tethereal.c(592) : error C4035: 'main' : no return value
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

I'm using MSVC 5.0 SP3.  I notice that the code at the end of main() in tethereal looks like this:

  exit(0);
}

Whereas in editcap.c (which compiles fine) it looks like this:

  exit(0);
  return 0;  /* Silence compiler warnings */
}

I guess the hack from editcap needs to go into tethereal too.  I tried it and it works fine.

Regards,
David

--
Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com