tools: fix the build
This commit is contained in:
parent
265dc57dcd
commit
f0a1112816
|
@ -34,6 +34,9 @@
|
||||||
#ifndef PROGNAME_ENGINEERING
|
#ifndef PROGNAME_ENGINEERING
|
||||||
# define PROGNAME_ENGINEERING "engineering"
|
# define PROGNAME_ENGINEERING "engineering"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef PROGNAME
|
||||||
|
# define PROGNAME PROGNAME_ENGINEERING
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "common.c"
|
#include "common.c"
|
||||||
|
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include "../src/plugins/smscrypt.c"
|
#include "../src/plugins/smscrypt.c"
|
||||||
|
|
||||||
#ifndef SMSCRYPT_PROGNAME
|
#ifndef PROGNAME_SMSCRYPT
|
||||||
# define SMSCRYPT_PROGNAME "smscrypt"
|
# define PROGNAME_SMSCRYPT "smscrypt"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ static void _hexdump(char const * buf, size_t len)
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
fputs("Usage: " SMSCRYPT_PROGNAME " [-p number] message\n", stderr);
|
fputs("Usage: " PROGNAME_SMSCRYPT " [-p number] message\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ static gboolean _main_idle(gpointer data)
|
||||||
plugin.helper = &helper;
|
plugin.helper = &helper;
|
||||||
if(_smscrypt_init(&plugin) != 0)
|
if(_smscrypt_init(&plugin) != 0)
|
||||||
{
|
{
|
||||||
error_print(SMSCRYPT_PROGNAME);
|
error_print(PROGNAME_SMSCRYPT);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
if((p = strdup(mn->message)) == NULL)
|
if((p = strdup(mn->message)) == NULL)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user