Commit 01280ca6 authored by Thomas Klausner's avatar Thomas Klausner Committed by Alan Coopersmith
Browse files

Add casts to fix signedness change warnings.


Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
parent 6cbd46bb
Pipeline #461291 passed with stages
in 1 minute and 51 seconds
......@@ -1384,15 +1384,15 @@ DataFromRawFile(FD rawfd)
/* If we already read a line last time, process it first,
else get the next line for processing */
if (FDinfo[rawfd].bufcount == 0) {
if (fgets(FDinfo[rawfd].buffer, BUFFER_SIZE, raw) == NULL) {
if (fgets((char *)FDinfo[rawfd].buffer, BUFFER_SIZE, raw) == NULL) {
CloseConnection(rawfd);
exit(0);
}
FDinfo[rawfd].bufcount = strlen(FDinfo[rawfd].buffer);
FDinfo[rawfd].bufcount = strlen((char *)FDinfo[rawfd].buffer);
debug(16, (stderr, "raw input = %s", FDinfo[rawfd].buffer));
}
in = FDinfo[rawfd].buffer;
in = (char *)FDinfo[rawfd].buffer;
/* lines starting with space indicate change of sender */
if (isspace(*(unsigned char *)in)) {
......@@ -1480,7 +1480,7 @@ DataFromRawFile(FD rawfd)
in = strstr(in, "(fd ");
if (in == NULL) {
warn("Did not find fd string in input entry");
warn(FDinfo[rawfd].buffer);
warn((char *)FDinfo[rawfd].buffer);
FDinfo[rawfd].bufcount = 0;
continue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment