Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/amd64 Function declarations did not match pro...



details:   https://anonhg.NetBSD.org/src/rev/8daedf0136e9
branches:  trunk
changeset: 581408:8daedf0136e9
user:      blymn <blymn%NetBSD.org@localhost>
date:      Wed Jun 01 13:06:46 2005 +0000

description:
Function declarations did not match prototypes, fix.

diffstat:

 sys/arch/amd64/amd64/db_trace.c |  19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diffs (73 lines):

diff -r b2f4bb79b71d -r 8daedf0136e9 sys/arch/amd64/amd64/db_trace.c
--- a/sys/arch/amd64/amd64/db_trace.c   Wed Jun 01 13:05:31 2005 +0000
+++ b/sys/arch/amd64/amd64/db_trace.c   Wed Jun 01 13:06:46 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_trace.c,v 1.3 2004/04/16 14:21:56 fvdl Exp $        */
+/*     $NetBSD: db_trace.c,v 1.4 2005/06/01 13:06:46 blymn Exp $       */
 
 /* 
  * Mach Operating System
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.3 2004/04/16 14:21:56 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_trace.c,v 1.4 2005/06/01 13:06:46 blymn Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -124,7 +124,8 @@
 int db_numargs(long *);
 int db_nextframe(long **, long **, long **, db_addr_t *, long *, int,
     void (*) (const char *, ...));
-db_sym_t db_frame_info(long *, db_addr_t, char **, db_expr_t *, int *, int *);
+db_sym_t db_frame_info(long *, db_addr_t, const char **, db_expr_t *,
+                       int *, int *);
 
 
 void
@@ -244,13 +245,13 @@
 }
 
 db_sym_t
-db_frame_info(long *frame, db_addr_t callpc, char **namep, db_expr_t *offp,
+db_frame_info(long *frame, db_addr_t callpc, const char **namep, db_expr_t *offp,
              int *is_trap, int *nargp)
 {
        db_expr_t       offset;
        db_sym_t        sym;
        int narg;
-       char *name;
+       const char *name;
 
        sym = db_search_symbol(callpc, DB_STGY_ANY, &offset);
        db_symbol_values(sym, &name, NULL);
@@ -299,7 +300,7 @@
 
 void
 db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
-                    char *modif, void (*pr)(const char *, ...))
+                    const char *modif, void (*pr)(const char *, ...))
 {
        long *frame, *lastframe;
        long *retaddr, *arg0;
@@ -315,8 +316,8 @@
 #endif
 
        {
-               register char *cp = modif;
-               register char c;
+               const char *cp = modif;
+               char c;
 
                while ((c = *cp++) != 0) {
                        if (c == 't')
@@ -370,7 +371,7 @@
        lastframe = 0;
        while (count && frame != 0) {
                int             narg;
-               char *  name;
+               const char *    name;
                db_expr_t       offset;
                db_sym_t        sym;
                char    *argnames[16], **argnp = NULL;



Home | Main Index | Thread Index | Old Index