소스 검색

Use local buffers for events

master
Arun Prakash Jana 6 년 전
부모
커밋
1dbbcac84f
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      src/nnn.c

+ 2
- 2
src/nnn.c 파일 보기

@@ -1491,10 +1491,10 @@ static int nextsel(int presel)
const uint len = LEN(bindings);
#ifdef LINUX_INOTIFY
struct inotify_event *event;
char *inotify_buf = alloca(EVENT_BUF_LEN);
char inotify_buf[EVENT_BUF_LEN];
memset((void *)inotify_buf, 0x0, EVENT_BUF_LEN);
#elif defined(BSD_KQUEUE)
struct kevent *event_data = alloca(sizeof(struct kevent) * NUM_EVENT_SLOTS);
struct kevent event_data[NUM_EVENT_SLOTS];
memset((void *)event_data, 0x0, sizeof(struct kevent) * NUM_EVENT_SLOTS);
#endif



불러오는 중...
취소
저장