summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-17 03:43:27 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-17 03:43:27 +0000
commitbca9fd93a82109f49318702017ed0ef44495353c (patch)
tree123940c09a3e6591920d6fc09bb63c75a5a88aca
parent9f3168cf9af3c4fe08c7a2e33610a88a43e2c652 (diff)
(_hurd_set_host_config): Cast second arg to __file_name_split.
-rw-r--r--hurd/set-host.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/hurd/set-host.c b/hurd/set-host.c
index f8d2d692f7..eee50fc08e 100644
--- a/hurd/set-host.c
+++ b/hurd/set-host.c
@@ -1,21 +1,21 @@
/* Set a host configuration item kept as the whole contents of a file.
-Copyright (C) 1996 Free Software Foundation, Inc.
-This file is part of the GNU C Library.
+ Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
-The GNU C Library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Library General Public License as
-published by the Free Software Foundation; either version 2 of the
-License, or (at your option) any later version.
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
-The GNU C Library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Library General Public License for more details.
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
-You should have received a copy of the GNU Library General Public
-License along with the GNU C Library; see the file COPYING.LIB. If
-not, write to the Free Software Foundation, Inc., 675 Mass Ave,
-Cambridge, MA 02139, USA. */
+ You should have received a copy of the GNU Library General Public
+ License along with the GNU C Library; see the file COPYING.LIB. If not,
+ write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
#include <fcntl.h>
#include <hurd.h>
@@ -28,7 +28,7 @@ _hurd_set_host_config (const char *item, const char *value, size_t valuelen)
mach_msg_type_number_t nwrote;
file_t new, dir;
- dir = __file_name_split (item, &item);
+ dir = __file_name_split (item, (char **)&item);
if (dir == MACH_PORT_NULL)
return -1;