]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/upas/fs/fs.c
upas/fs: catch alarm note (used in pop3 code)
[plan9front.git] / sys / src / cmd / upas / fs / fs.c
index 5874b94742b6ec7fd8a6b56efaa8b7ecc7b79705..b07c793eddb0c122546ae94bcb7d8eda5c5b5509 100644 (file)
@@ -145,10 +145,9 @@ usage(void)
 }
 
 void
-notifyf(void *a, char *s)
+notifyf(void *, char *s)
 {
-       USED(a);
-       if(strncmp(s, "interrupt", 9) == 0)
+       if(strstr(s, "alarm") || strstr(s, "interrupt"))
                noted(NCONT);
        noted(NDFLT);
 }