mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
man/examples: fix sd- header path
This commit is contained in:
parent
e84f70e16d
commit
2548ce6a30
@ -3,7 +3,7 @@
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <sd-event.h>
|
||||
#include <systemd/sd-event.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
pid_t pid = fork();
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <sd-hwdb.h>
|
||||
#include <systemd/sd-hwdb.h>
|
||||
|
||||
int print_usb_properties(uint16_t vid, uint16_t pid) {
|
||||
char match[128];
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <sd-path.h>
|
||||
#include <systemd/sd-path.h>
|
||||
|
||||
int main(void) {
|
||||
int r;
|
||||
|
@ -3,7 +3,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sd-bus.h>
|
||||
#include <systemd/sd-bus.h>
|
||||
|
||||
int writer_with_negative_errno_return(int fd, sd_bus_error *error) {
|
||||
const char *message = "Hello, World!\n";
|
||||
|
Loading…
Reference in New Issue
Block a user