patch-2.1.44 linux/arch/sparc/prom/tree.c
Next file: linux/arch/sparc64/Makefile
Previous file: linux/arch/sparc/prom/bootstr.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Jul 7 08:18:54 1997
- Orig file:
v2.1.43/linux/arch/sparc/prom/tree.c
- Orig date:
Thu May 15 16:48:02 1997
diff -u --recursive --new-file v2.1.43/linux/arch/sparc/prom/tree.c linux/arch/sparc/prom/tree.c
@@ -1,4 +1,4 @@
-/* $Id: tree.c,v 1.18 1997/05/14 20:45:03 davem Exp $
+/* $Id: tree.c,v 1.19 1997/06/27 14:52:54 jj Exp $
* tree.c: Basic device tree traversal/scanning for the Linux
* prom library.
*
@@ -231,7 +231,7 @@
/* Return the first property type for node 'node'.
*/
-char * prom_firstprop(int node)
+char * prom_firstprop(int node, char *buffer)
{
unsigned long flags;
char *ret;
@@ -248,7 +248,7 @@
* at node 'node' . Returns NULL string if no more
* property types for this node.
*/
-char * prom_nextprop(int node, char *oprop)
+char * prom_nextprop(int node, char *oprop, char *buffer)
{
char *ret;
unsigned long flags;
@@ -293,7 +293,7 @@
char *current_property = "";
do {
- current_property = prom_nextprop(node, current_property);
+ current_property = prom_nextprop(node, current_property, NULL);
if(!strcmp(current_property, prop))
return 1;
} while (*current_property);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov