Many changes to ServerCore

This commit is contained in:
barant committed 2021-07-23 08:57:27 -07:00
1 parent 6969ef0fbb
commit d445834af6
83 files changed
+666 -756

No files matched your search

+2 -2
View File
@@ -19,10 +19,10 @@ namespace core {
inotify_rm_watch(getDescriptor(), wd);
}
void INotify::onDataReceived(char *buffer, int len) {
void INotify::onDataReceived(coreutils::ZString buffer) {
const struct inotify_event *event;
char *ptr;
for (ptr = buffer; ptr < buffer + len;
for (ptr = buffer.getData(); ptr < buffer.getData() + buffer.getLength();
ptr += sizeof(struct inotify_event) + event->len) {
event = (const struct inotify_event *) ptr;