Remove some warnings, and correct some errors in examples

This commit is contained in:
Godzil 2019-07-24 15:40:37 +01:00
parent fa61f857a7
commit 0ce298ca33
2 changed files with 3 additions and 2 deletions

View File

@ -51,6 +51,7 @@
*/ */
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>

View File

@ -366,12 +366,12 @@ static int fusd_success(struct fusd_file_info *file)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
/* register the input device */ /* register the input device */
fusd_simple_register("/dev/pager/input", "pager", "input", 0666, NULL, fusd_simple_register("/dev/pager/input", "pager", "pager!input", 0666, NULL,
open: fusd_success, close: fusd_success, open: fusd_success, close: fusd_success,
write: pager_input_write); write: pager_input_write);
/* register the notification device */ /* register the notification device */
fusd_simple_register("/dev/pager/notify", "pager", "notify", 0666, NULL, fusd_simple_register("/dev/pager/notify", "pager", "pager!notify", 0666, NULL,
open: pager_notify_open, open: pager_notify_open,
close: pager_notify_close, close: pager_notify_close,
read: pager_notify_read, read: pager_notify_read,