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