man/notify-selfcontained-example: check argument first
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2024 08:57:30 +0000 (10:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 4 Apr 2024 10:18:30 +0000 (12:18 +0200)
commit4cbf560edf64569bc6780e3c67b660c20743560d
treef8b0cc2c975373f167ed342688a4a80ff318b6d5
parenta1887f8b48a8d7d0ccf8ecfa1341ca638c503c44
man/notify-selfcontained-example: check argument first

This is just good style. In this particular case, if the argument is incorrect and
the function is not tested with $NOTIFY_SOCKET set, the user could not get the
proper error until running for real.

Also, remove mention of systemd. The protocol is fully generic on purpose.
man/notify-selfcontained-example.c