make dn_skipname, fp_query, hostalias, p_cdname, p_class, p_query,
[unix-history] / usr / src / lib / libc / net / res_debug.c
index 24a8679..df3f0e7 100644 (file)
@@ -4,11 +4,11 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)res_debug.c 5.31 (Berkeley) %G%
+ *     @(#)res_debug.c 5.32 (Berkeley) %G%
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
  */
 
 #if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)res_debug.c        5.31 (Berkeley) %G%";
+static char sccsid[] = "@(#)res_debug.c        5.32 (Berkeley) %G%";
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/param.h>
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/param.h>
@@ -16,8 +16,8 @@ static char sccsid[] = "@(#)res_debug.c       5.31 (Berkeley) %G%";
 #include <stdio.h>
 #include <arpa/nameser.h>
 
 #include <stdio.h>
 #include <arpa/nameser.h>
 
-extern char *p_cdname(), *p_rr(), *p_type(), *p_class(), *p_time();
 extern char *inet_ntoa();
 extern char *inet_ntoa();
+static char *p_cdname(), *p_class(), *p_rr(), *p_time(), *p_type();
 
 char *_res_opcodes[] = {
        "QUERY",
 
 char *_res_opcodes[] = {
        "QUERY",
@@ -57,7 +57,7 @@ char *_res_resultcodes[] = {
        "NOCHANGE",
 };
 
        "NOCHANGE",
 };
 
-p_query(msg)
+__p_query(msg)
        char *msg;
 {
        fp_query(msg,stdout);
        char *msg;
 {
        fp_query(msg,stdout);
@@ -67,6 +67,7 @@ p_query(msg)
  * Print the contents of a query.
  * This is intended to be primarily a debugging routine.
  */
  * Print the contents of a query.
  * This is intended to be primarily a debugging routine.
  */
+static
 fp_query(msg,file)
        char *msg;
        FILE *file;
 fp_query(msg,file)
        char *msg;
        FILE *file;
@@ -113,7 +114,8 @@ fp_query(msg,file)
                                return;
                        fprintf(file,", type = %s", p_type(_getshort(cp)));
                        cp += sizeof(u_short);
                                return;
                        fprintf(file,", type = %s", p_type(_getshort(cp)));
                        cp += sizeof(u_short);
-                       fprintf(file,", class = %s\n\n", p_class(_getshort(cp)));
+                       fprintf(file,
+                           ", class = %s\n\n", p_class(_getshort(cp)));
                        cp += sizeof(u_short);
                }
        }
                        cp += sizeof(u_short);
                }
        }
@@ -155,7 +157,7 @@ fp_query(msg,file)
        }
 }
 
        }
 }
 
-char *
+static char *
 p_cdname(cp, msg, file)
        char *cp, *msg;
        FILE *file;
 p_cdname(cp, msg, file)
        char *cp, *msg;
        FILE *file;
@@ -176,7 +178,7 @@ p_cdname(cp, msg, file)
 /*
  * Print resource record fields in human readable form.
  */
 /*
  * Print resource record fields in human readable form.
  */
-char *
+static char *
 p_rr(cp, msg, file)
        char *cp, *msg;
        FILE *file;
 p_rr(cp, msg, file)
        char *cp, *msg;
        FILE *file;
@@ -358,7 +360,7 @@ static      char nbuf[40];
 /*
  * Return a string for the type
  */
 /*
  * Return a string for the type
  */
-char *
+static char *
 p_type(type)
        int type;
 {
 p_type(type)
        int type;
 {
@@ -418,7 +420,7 @@ p_type(type)
 /*
  * Return a mnemonic for class
  */
 /*
  * Return a mnemonic for class
  */
-char *
+static char *
 p_class(class)
        int class;
 {
 p_class(class)
        int class;
 {
@@ -439,7 +441,7 @@ p_class(class)
 /*
  * Return a mnemonic for a time to live
  */
 /*
  * Return a mnemonic for a time to live
  */
-char *
+static char *
 p_time(value)
        u_long value;
 {
 p_time(value)
        u_long value;
 {