summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dive.c b/dive.c
index 472f8c2dc..2bea1e43c 100644
--- a/dive.c
+++ b/dive.c
@@ -2495,10 +2495,10 @@ static void picture_free( struct picture *p){
free( p->filename );
free( p );
}
-void dive_remove_picture(struct picture *p)
+void dive_remove_picture(char *filename)
{
struct picture **ep = &current_dive->picture_list;
- while (ep && !same_string((*ep)->filename, p->filename))
+ while (ep && !same_string((*ep)->filename, filename))
ep = &(*ep)->next;
if (ep) {
struct picture *temp = (*ep)->next;