Acked-by: Joel Schopp <[email protected]>

On 10/08/2013 02:47 PM, Richard Maciel wrote:
> Patchset named "Changed underlying network code to better
> support IPv6" (starts with commit
> 982c3ebe9d9a00284650a8745d3e8fb912f3d307 and ends with commit
> 5656124f3b873d233a9818efa4490866c7726a19) introduced three warning
> messages. Two related to prototypes of new functions not being
> declared in their header file and one related to a missing
> typecast.
> 
> Signed-off-by: Richard Maciel <[email protected]>
> ---
>  src/include/tsp_tcsi_param.h | 8 ++++++++
>  src/tspi/obj_context.c       | 4 ++--
>  2 files changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/src/include/tsp_tcsi_param.h b/src/include/tsp_tcsi_param.h
> index 1628250..bc000d4 100644
> --- a/src/include/tsp_tcsi_param.h
> +++ b/src/include/tsp_tcsi_param.h
> @@ -17,3 +17,11 @@
>  #define HOSTNAME_ENV_VAR "TSS_TCSD_HOSTNAME"
> 
>  #define TCP_PORT_STR_MAX_LEN 6
> +
> +/* Prototypes for functions which retrieve tcsd hostname and port
> + * information */
> +TSS_RESULT
> +get_tcsd_port(char port_str[TCP_PORT_STR_MAX_LEN]);
> +
> +TSS_RESULT
> +get_tcsd_hostname(char **host_str, unsigned *len);
> diff --git a/src/tspi/obj_context.c b/src/tspi/obj_context.c
> index feb99ac..7bbd869 100644
> --- a/src/tspi/obj_context.c
> +++ b/src/tspi/obj_context.c
> @@ -23,7 +23,7 @@
>  #include "capabilities.h"
>  #include "tsplog.h"
>  #include "obj.h"
> -
> +#include "tsp_tcsi_param.h"
> 
>  TSS_RESULT
>  obj_context_add(TSS_HOBJECT *phObject)
> @@ -41,7 +41,7 @@ obj_context_add(TSS_HOBJECT *phObject)
>  #else
>       context->silentMode = TSS_TSPATTRIB_CONTEXT_SILENT;
>  #endif
> -     if ((result = get_tcsd_hostname(&context->machineName,
> +     if ((result = get_tcsd_hostname((char **)&context->machineName,
>                                       &context->machineNameLength)) != 
> TSS_SUCCESS) {
>               free(context);
>               return result;
> 


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
TrouSerS-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-tech

Reply via email to