hexdump: fix comparison of distinct pointer types
display.c: In function ‘get’: display.c:262:117: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
69c9e8387b
commit
b6b0ea094b
|
@ -225,8 +225,7 @@ get(void)
|
||||||
{
|
{
|
||||||
static int ateof = 1;
|
static int ateof = 1;
|
||||||
static u_char *curp, *savp;
|
static u_char *curp, *savp;
|
||||||
ssize_t n;
|
ssize_t n, need, nread;
|
||||||
int need, nread;
|
|
||||||
u_char *tmpp;
|
u_char *tmpp;
|
||||||
|
|
||||||
if (!curp) {
|
if (!curp) {
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
#include "closestream.h"
|
#include "closestream.h"
|
||||||
|
|
||||||
FS *fshead; /* head of format strings */
|
FS *fshead; /* head of format strings */
|
||||||
int blocksize; /* data block size */
|
ssize_t blocksize; /* data block size */
|
||||||
int exitval; /* final exit value */
|
int exitval; /* final exit value */
|
||||||
ssize_t length = -1; /* max bytes to read */
|
ssize_t length = -1; /* max bytes to read */
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,7 @@ typedef struct _fs { /* format strings */
|
||||||
|
|
||||||
extern FU *endfu;
|
extern FU *endfu;
|
||||||
extern FS *fshead; /* head of format strings list */
|
extern FS *fshead; /* head of format strings list */
|
||||||
extern int blocksize; /* data block size */
|
extern ssize_t blocksize; /* data block size */
|
||||||
extern int deprecated; /* od compatibility */
|
extern int deprecated; /* od compatibility */
|
||||||
extern int exitval; /* final exit value */
|
extern int exitval; /* final exit value */
|
||||||
extern ssize_t length; /* max bytes to read */
|
extern ssize_t length; /* max bytes to read */
|
||||||
|
|
Loading…
Reference in New Issue