Forráskód Böngészése

Fixed compiler warnings.

woollybah 5 éve
szülő
commit
67e231cf5e
2 módosított fájl, 2 hozzáadás és 0 törlés
  1. 1 0
      stringbuffer_glue.c
  2. 1 0
      waitpid.c

+ 1 - 0
stringbuffer_glue.c

@@ -205,6 +205,7 @@ int bmx_stringbuffer_endswith(struct MaxStringBuffer * buf, BBString * subString
 	if (subString->length <= buf->count) {
 		return bmx_stringbuffer_matches(buf, buf->count - subString->length, subString);
 	}
+	return 0;
 }
 
 int bmx_stringbuffer_find(struct MaxStringBuffer * buf, BBString * subString, int startIndex) {

+ 1 - 0
waitpid.c

@@ -5,6 +5,7 @@
 #include <sys/wait.h>
 #include <errno.h>
 #include <sys/types.h>
+#include <unistd.h>
 #endif
 
 int bmx_system(const char * c) {