projects
/
routeros-api.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix a couple of compiler warnings.
[routeros-api.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
5981dbf
..
d492b48
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-27,7
+27,7
@@
# define _POSIX_C_SOURCE 200112L
#endif
# define _POSIX_C_SOURCE 200112L
#endif
-#include
<config.h>
+#include
"config.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
@@
-112,7
+112,7
@@
static int read_exact (int fd, void *buffer, size_t buffer_size) /* {{{ */
return (status);
}
return (status);
}
- assert (
status
<= want_bytes);
+ assert (
((size_t) status)
<= want_bytes);
have_bytes += status;
buffer_ptr += status;
}
have_bytes += status;
buffer_ptr += status;
}
@@
-389,7
+389,7
@@
static int send_command (ros_connection_t *c, /* {{{ */
else
return (errno);
}
else
return (errno);
}
- assert (
bytes_written
<= buffer_size);
+ assert (
((size_t) bytes_written)
<= buffer_size);
buffer_ptr += bytes_written;
buffer_size -= bytes_written;
buffer_ptr += bytes_written;
buffer_size -= bytes_written;