Ticket #458 (new defect)

Opened 7 years ago

Remove extraneous logit() (and other library) function prototypes

Reported by: baker Owned by: somebody
Priority: minor Milestone: All Platforms
Component: ALL modules Version: 7.7
Keywords: Cc:

Description

Several source files include their own function prototype for logit() (as well as other library routines):

include/ew_event_info.h
src/libsrc/util/make_triglist.c
src/data_exchange/file2ew/csmip2ew.c
src/data_exchange/file2ew/nsmp2ew.c
src/data_exchange/file2ew/redi2ew.c
src/data_exchange/file2ew/terra2ew.c
src/data_exchange/file2ew/tremor2ew.c

This causes conflicts when logit() is redefined in the system-wide header file, include/earthworm_simple_funcs.h.

There should only be one authoritative function prototype for logit(): the one in include/earthworm_simple_funcs.h.

include/ew_event_info.h seems not to be used in the standard Earthworm make unix. I didn't have to modify it. All the others I deleted the lines that declare function logit().

Note: See TracTickets for help on using tickets.