소스 검색

Improving some error messages

master
phillbush 4 년 전
부모
커밋
70f5db0f88
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      xmenu.c

+ 2
- 2
xmenu.c 파일 보기

@@ -514,7 +514,7 @@ buildmenutree(unsigned level, const char *label, const char *output, char *file)
menu = menu->parent, i++) menu = menu->parent, i++)
; ;
if (menu == NULL) if (menu == NULL)
errx(1, "reached NULL menu"); errx(1, "improper indentation detected");


/* find last item in the new menu */ /* find last item in the new menu */
for (item = menu->list; item->next != NULL; item = item->next) for (item = menu->list; item->next != NULL; item = item->next)
@@ -864,7 +864,7 @@ grabpointer(void)
return; return;
nanosleep(&ts, NULL); nanosleep(&ts, NULL);
} }
errx(1, "could not grab keyboard"); errx(1, "could not grab pointer");
} }


/* try to grab keyboard, we may have to wait for another process to ungrab */ /* try to grab keyboard, we may have to wait for another process to ungrab */


||||||
x
 
000:0
불러오는 중...
취소
저장