mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
More fixes for "signed vs. unsigned" warnings.
This commit is contained in:
parent
ff5a9033f9
commit
df4532bfa3
@ -161,7 +161,7 @@ static void loadnewfont(int fd)
|
|||||||
{
|
{
|
||||||
int unit;
|
int unit;
|
||||||
char inbuf[32768]; /* primitive */
|
char inbuf[32768]; /* primitive */
|
||||||
int inputlth, offset;
|
unsigned int inputlth, offset;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We used to look at the length of the input file
|
* We used to look at the length of the input file
|
||||||
@ -187,7 +187,7 @@ static void loadnewfont(int fd)
|
|||||||
struct psf_header psfhdr;
|
struct psf_header psfhdr;
|
||||||
int fontsize;
|
int fontsize;
|
||||||
int hastable;
|
int hastable;
|
||||||
int head0, head;
|
unsigned int head0, head;
|
||||||
|
|
||||||
if (inputlth < sizeof(struct psf_header))
|
if (inputlth < sizeof(struct psf_header))
|
||||||
goto no_psf;
|
goto no_psf;
|
||||||
|
@ -161,7 +161,7 @@ static void loadnewfont(int fd)
|
|||||||
{
|
{
|
||||||
int unit;
|
int unit;
|
||||||
char inbuf[32768]; /* primitive */
|
char inbuf[32768]; /* primitive */
|
||||||
int inputlth, offset;
|
unsigned int inputlth, offset;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We used to look at the length of the input file
|
* We used to look at the length of the input file
|
||||||
@ -187,7 +187,7 @@ static void loadnewfont(int fd)
|
|||||||
struct psf_header psfhdr;
|
struct psf_header psfhdr;
|
||||||
int fontsize;
|
int fontsize;
|
||||||
int hastable;
|
int hastable;
|
||||||
int head0, head;
|
unsigned int head0, head;
|
||||||
|
|
||||||
if (inputlth < sizeof(struct psf_header))
|
if (inputlth < sizeof(struct psf_header))
|
||||||
goto no_psf;
|
goto no_psf;
|
||||||
|
3
logger.c
3
logger.c
@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (fromStdinFlag == TRUE) {
|
if (fromStdinFlag == TRUE) {
|
||||||
/* read from stdin */
|
/* read from stdin */
|
||||||
int c, i = 0;
|
int c;
|
||||||
|
unsigned int i = 0;
|
||||||
|
|
||||||
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
|
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
|
||||||
buf[i++] = c;
|
buf[i++] = c;
|
||||||
|
@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv)
|
|||||||
|
|
||||||
if (fromStdinFlag == TRUE) {
|
if (fromStdinFlag == TRUE) {
|
||||||
/* read from stdin */
|
/* read from stdin */
|
||||||
int c, i = 0;
|
int c;
|
||||||
|
unsigned int i = 0;
|
||||||
|
|
||||||
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
|
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
|
||||||
buf[i++] = c;
|
buf[i++] = c;
|
||||||
|
Loading…
Reference in New Issue
Block a user