Bug fix and authoring
[src/app-framework-main.git] / src / wgtpkg-sign.c
index be618a7..7851c4a 100644 (file)
@@ -1,6 +1,8 @@
 /*
  Copyright 2015 IoT.bzh
 
+ author: José Bollo <jose.bollo@iot.bzh>
+
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
@@ -21,7 +23,6 @@
 #include <unistd.h>
 #include <limits.h>
 #include <errno.h>
-#include <syslog.h>
 #include <getopt.h>
 #include <sys/stat.h>
 #include <fcntl.h>
@@ -57,7 +58,7 @@ static unsigned int get_number(const char *value)
 static void usage()
 {
        printf(
-               "usage: %s [-f] [-k keyfile] [-c certfile]... [-o wgtfile] [-d number | -a] directory\n"
+               "usage: %s [-f] [-k keyfile] [-c certfile]... [-d number | -a] directory\n"
                "\n"
                "   -k keyfile       the private key to use for author signing\n"
                "   -c certfile      the certificate(s) to use for author signing\n"
@@ -91,7 +92,7 @@ int main(int ac, char **av)
        char *keyfile, *certfiles[MAXCERT+1], *directory, **x;
        struct stat s;
 
-       openlog(appname, LOG_PERROR, LOG_USER);
+       LOGUSER(appname);
 
        force = ncert = author = 0;
        number = UINT_MAX;