$OpenBSD: patch-src_input_input_file_c,v 1.1 2007/06/13 10:58:29 jakemsr Exp $
--- src/input/input_file.c.orig	Sat Jun  2 18:50:47 2007
+++ src/input/input_file.c	Fri Jun  8 17:27:46 2007
@@ -202,7 +202,7 @@ static buf_element_t *file_plugin_read_block (input_pl
 	  xine_log (this->stream->xine, XINE_LOG_MSG,
 		    _("input_file: read error (%s)\n"), strerror(errno));
 	  _x_message(this->stream, XINE_MSG_READ_ERROR,
-                     this->mrl, NULL);
+                     this->mrl, (char *)NULL);
 	}
 	buf->free_buffer (buf);
 	buf = NULL;
@@ -398,12 +398,12 @@ static int file_plugin_open (input_plugin_t *this_gen 
 
     if (this->fh == -1) {
       if (errno == EACCES) {
-        _x_message(this->stream, XINE_MSG_PERMISSION_ERROR, this->mrl, NULL);
+        _x_message(this->stream, XINE_MSG_PERMISSION_ERROR, this->mrl, (char *)NULL);
 	xine_log (this->stream->xine, XINE_LOG_MSG,
 		  _("input_file: Permission denied: >%s<\n"), this->mrl);
 	return -1;
       } else if (errno == ENOENT) {
-        _x_message(this->stream, XINE_MSG_FILE_NOT_FOUND, this->mrl, NULL);
+        _x_message(this->stream, XINE_MSG_FILE_NOT_FOUND, this->mrl, (char *)NULL);
 	xine_log (this->stream->xine, XINE_LOG_MSG,
 		  _("input_file: File not found: >%s<\n"), this->mrl);
       }
@@ -438,7 +438,7 @@ static int file_plugin_open (input_plugin_t *this_gen 
 #endif
 
   if (file_plugin_get_length (this_gen) == 0) {
-      _x_message(this->stream, XINE_MSG_FILE_EMPTY, this->mrl, NULL);
+      _x_message(this->stream, XINE_MSG_FILE_EMPTY, this->mrl, (char *)NULL);
       close (this->fh);
       xine_log (this->stream->xine, XINE_LOG_MSG,
 		_("input_file: File empty: >%s<\n"), this->mrl);
