diff options
author | Christian Hesse <mail@eworm.de> | 2015-05-19 11:59:59 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-05-19 11:59:59 +0200 |
commit | aae3071b0dd52d5b24ffde0a850b3c6f941ccb04 (patch) | |
tree | 8760fdad03c6ef91c51e701f0064c4553d87916f | |
parent | 83e121f2dc5abf621e268d1c5ba59d9a7a029507 (diff) | |
download | journal-notify-aae3071b0dd52d5b24ffde0a850b3c6f941ccb04.tar.gz journal-notify-aae3071b0dd52d5b24ffde0a850b3c6f941ccb04.tar.zst |
keep integer value of priority
-rw-r--r-- | journal-notify.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/journal-notify.c b/journal-notify.c index 81aea75..d05cd9d 100644 --- a/journal-notify.c +++ b/journal-notify.c @@ -74,9 +74,9 @@ int main(int argc, char **argv) { char * identifier, * message, * identifier_markup, * message_markup; + uint8_t priority, urgency; const char * icon = DEFAULTICON; int timeout = -1; - uint8_t urgency; program = argv[0]; @@ -240,7 +240,8 @@ int main(int argc, char **argv) { fprintf(stderr, "Failed to read syslog identifier field: %s\n", strerror(-rc)); continue; } - switch(atoi(data + 9)) { + priority = atoi(data + 9); + switch(priority) { case 0: case 1: case 2: |