#define _GNU_SOURCE 1
#endif
-#include "config.h"
-
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
{
struct udev *udev;
static const struct option options[] = {
- { "export", 0, NULL, 'x' },
- { "debug", 0, NULL, 'd' },
- { "help", 0, NULL, 'h' },
+ { "export", no_argument, NULL, 'x' },
+ { "debug", no_argument, NULL, 'd' },
+ { "help", no_argument, NULL, 'h' },
{}
};
char **devices;
if (label[0] == '"' || label[0] == '\'') {
char *pos;
- strlcpy(str, &label[1], sizeof(str));
+ util_strlcpy(str, &label[1], sizeof(str));
pos = strrchr(str, label[0]);
if (pos == NULL)
continue;
if (uuid[0] == '"' || uuid[0] == '\'') {
char *pos;
- strlcpy(str, &uuid[1], sizeof(str));
+ util_strlcpy(str, &uuid[1], sizeof(str));
pos = strrchr(str, uuid[0]);
if (pos == NULL)
continue;