Replace readdir_r with readdir
[platform/upstream/ltrace.git] / fetch.c
diff --git a/fetch.c b/fetch.c
index 88966a5..cbceefb 100644 (file)
--- a/fetch.c
+++ b/fetch.c
 #include "type.h"
 
 #ifdef ARCH_HAVE_FETCH_ARG
-struct fetch_context *arch_fetch_arg_init(enum tof type, struct Process *proc,
+struct fetch_context *arch_fetch_arg_init(enum tof type, struct process *proc,
                                          struct arg_type_info *ret_info);
 
-struct fetch_context *arch_fetch_arg_clone(struct Process *proc,
+struct fetch_context *arch_fetch_arg_clone(struct process *proc,
                                           struct fetch_context *context);
 
 int arch_fetch_arg_next(struct fetch_context *ctx, enum tof type,
-                       struct Process *proc, struct arg_type_info *info,
+                       struct process *proc, struct arg_type_info *info,
                        struct value *valuep);
 
 int arch_fetch_retval(struct fetch_context *ctx, enum tof type,
-                     struct Process *proc, struct arg_type_info *info,
+                     struct process *proc, struct arg_type_info *info,
                      struct value *valuep);
 
 void arch_fetch_arg_done(struct fetch_context *context);
@@ -53,7 +53,7 @@ void arch_fetch_param_pack_end(struct fetch_context *context);
 #else
 /* Fall back to gimme_arg.  */
 
-long gimme_arg(enum tof type, struct Process *proc, int arg_num,
+long gimme_arg(enum tof type, struct process *proc, int arg_num,
               struct arg_type_info *info);
 
 struct fetch_context {
@@ -61,14 +61,14 @@ struct fetch_context {
 };
 
 struct fetch_context *
-arch_fetch_arg_init(enum tof type, struct Process *proc,
+arch_fetch_arg_init(enum tof type, struct process *proc,
                    struct arg_type_info *ret_info)
 {
        return calloc(sizeof(struct fetch_context), 1);
 }
 
 struct fetch_context *
-arch_fetch_arg_clone(struct Process *proc, struct fetch_context *context)
+arch_fetch_arg_clone(struct process *proc, struct fetch_context *context)
 {
        struct fetch_context *ret = malloc(sizeof(*ret));
        if (ret == NULL)
@@ -78,7 +78,7 @@ arch_fetch_arg_clone(struct Process *proc, struct fetch_context *context)
 
 int
 arch_fetch_arg_next(struct fetch_context *context, enum tof type,
-                   struct Process *proc,
+                   struct process *proc,
                    struct arg_type_info *info, struct value *valuep)
 {
        long l = gimme_arg(type, proc, context->argnum++, info);
@@ -88,7 +88,7 @@ arch_fetch_arg_next(struct fetch_context *context, enum tof type,
 
 int
 arch_fetch_retval(struct fetch_context *context, enum tof type,
-                 struct Process *proc,
+                 struct process *proc,
                  struct arg_type_info *info, struct value *valuep)
 {
        long l = gimme_arg(type, proc, -1, info);
@@ -118,21 +118,21 @@ arch_fetch_param_pack_end(struct fetch_context *context)
 #endif
 
 struct fetch_context *
-fetch_arg_init(enum tof type, struct Process *proc,
+fetch_arg_init(enum tof type, struct process *proc,
               struct arg_type_info *ret_info)
 {
        return arch_fetch_arg_init(type, proc, ret_info);
 }
 
 struct fetch_context *
-fetch_arg_clone(struct Process *proc, struct fetch_context *context)
+fetch_arg_clone(struct process *proc, struct fetch_context *context)
 {
        return arch_fetch_arg_clone(proc, context);
 }
 
 int
 fetch_arg_next(struct fetch_context *context, enum tof type,
-              struct Process *proc,
+              struct process *proc,
               struct arg_type_info *info, struct value *valuep)
 {
        return arch_fetch_arg_next(context, type, proc, info, valuep);
@@ -140,7 +140,7 @@ fetch_arg_next(struct fetch_context *context, enum tof type,
 
 int
 fetch_retval(struct fetch_context *context, enum tof type,
-            struct Process *proc,
+            struct process *proc,
             struct arg_type_info *info, struct value *valuep)
 {
        return arch_fetch_retval(context, type, proc, info, valuep);