$OpenBSD: patch-src_input_input_file_c,v 1.5 2009/02/16 01:24:24 sthen Exp $
--- src/input/input_file.c.orig	Tue Feb 10 12:32:23 2009
+++ src/input/input_file.c	Wed Feb 11 00:55:26 2009
@@ -210,7 +210,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;
@@ -366,11 +366,11 @@ 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);
     } 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);
     }
@@ -407,7 +407,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);
