$OpenBSD: patch-gphoto2_shell_c,v 1.3 2007/10/19 13:00:18 ajacoutot Exp $
--- gphoto2/shell.c.orig	Fri Jul 27 02:35:23 2007
+++ gphoto2/shell.c	Thu Oct 11 15:50:35 2007
@@ -396,7 +396,7 @@ shell_completion_function (const char *text, int start
 
 	if (!start) {
 		/* Complete command */
-		matches = rl_completion_matches (text, shell_command_generator);
+		matches = completion_matches (text, shell_command_generator);
 	} else {
 		current = strdup (rl_copy_text (0, end));
 
@@ -408,7 +408,7 @@ shell_completion_function (const char *text, int start
 		free (current);
 
 		/* Complete remote path */
-		matches = rl_completion_matches (text, shell_path_generator);
+		matches = completion_matches (text, shell_path_generator);
 	}
 
 	return (matches);
