Use PROGNAME
This commit is contained in:
parent
112b7c363a
commit
268c3f1c10
|
@ -20,13 +20,17 @@
|
||||||
#include <System/error.h>
|
#include <System/error.h>
|
||||||
#include "App/appclient.h"
|
#include "App/appclient.h"
|
||||||
|
|
||||||
|
#ifndef PROGNAME
|
||||||
|
# define PROGNAME "appclient"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* private */
|
/* private */
|
||||||
/* functions */
|
/* functions */
|
||||||
/* usage */
|
/* usage */
|
||||||
static int _usage(void)
|
static int _usage(void)
|
||||||
{
|
{
|
||||||
fputs("Usage: appclient [-a app][-n name]\n", stderr);
|
fputs("Usage: " PROGNAME " [-a app][-n name]\n", stderr);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +58,7 @@ int main(int argc, char * argv[])
|
||||||
}
|
}
|
||||||
if((appclient = appclient_new(NULL, app, name)) == NULL)
|
if((appclient = appclient_new(NULL, app, name)) == NULL)
|
||||||
{
|
{
|
||||||
error_print("appclient");
|
error_print(PROGNAME);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
appclient_delete(appclient);
|
appclient_delete(appclient);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user