X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=blobdiff_plain;f=info.c;h=8db606344e7394ecbe44d5dbc961788d669c0dce;hp=242e4b24d5823bfb580c23e86af974316fabbaeb;hb=666538ec7739fe839623bd1b6f9f80ff884ad5a9;hpb=e46688d694d33f445ecb2368541898613af0f3b3 diff --git a/info.c b/info.c index 242e4b2..8db6063 100644 --- a/info.c +++ b/info.c @@ -519,7 +519,7 @@ int edit_multi_dive_info(struct dive *single_dive) int i; struct dive *dive; - for (i = 0; (dive = get_dive(i)) != NULL; i++) { + for_each_dive(i, dive) { if (dive == master || !dive->selected) continue; /* copy all "info" fields */