No C99 initialisers, gcc 2.95.3 doesn't like it.

Also make sure getopt.h is included.
This commit is contained in:
Guus Sliepen 2003-07-30 11:50:45 +00:00
parent de223b51b9
commit fcbe29bc4c
8 changed files with 57 additions and 63 deletions

View file

@ -17,7 +17,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
$Id: edge.c,v 1.1.2.24 2003/07/29 10:50:15 guus Exp $
$Id: edge.c,v 1.1.2.25 2003/07/30 11:50:45 guus Exp $
*/
#include "system.h"
@ -125,13 +125,13 @@ void edge_del(edge_t *e)
edge_t *lookup_edge(node_t *from, node_t *to)
{
edge_t v = {
.from = from,
.to = to
};
edge_t v;
cp();
v.from = from;
v.to = to;
return avl_search(from->edge_tree, &v);
}