add printflike and fix the format error.
This commit is contained in:
parent
4f3abdf86a
commit
2360984d25
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iscsic_globals.h,v 1.1 2011/10/23 21:11:23 agc Exp $ */
|
||||
/* $NetBSD: iscsic_globals.h,v 1.2 2011/10/23 23:41:56 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
|
||||
|
@ -152,10 +152,10 @@ ntohq(uint64_t x)
|
|||
|
||||
/* iscsic_main.c */
|
||||
|
||||
void arg_error(char *, const char *, ...);
|
||||
void arg_error(char *, const char *, ...) __printflike(2, 3);
|
||||
void arg_missing(const char *);
|
||||
void io_error(const char *, ...);
|
||||
void gen_error(const char *, ...);
|
||||
void io_error(const char *, ...) __printflike(1, 2);
|
||||
void gen_error(const char *, ...) __printflike(1, 2);
|
||||
void check_extra_args(int, char **);
|
||||
void status_error(unsigned);
|
||||
void status_error_slist(unsigned);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iscsic_main.c,v 1.1 2011/10/23 21:11:23 agc Exp $ */
|
||||
/* $NetBSD: iscsic_main.c,v 1.2 2011/10/23 23:41:56 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
|
||||
|
@ -441,7 +441,7 @@ get_response(int temp)
|
|||
|
||||
if (temp) {
|
||||
if (NULL == (pbuf = (int *) malloc(len + sizeof(int))))
|
||||
gen_error("Can't allocate response buffer (%d bytes)",
|
||||
gen_error("Can't allocate response buffer (%zu bytes)",
|
||||
len + sizeof(int));
|
||||
|
||||
rsp = (iscsid_response_t *) & pbuf[1];
|
||||
|
|
Loading…
Reference in New Issue