X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=client-src%2Fversionsuffix.c;h=d9e2ecbe7715f5519f0a785b4d7d1758098b6bb0;hb=3e9b502276de9d7e44246f164b39f365765d00c1;hp=4d60148e17d3f86cbd4ec0c72397797571c91f48;hpb=2df780bff19c457b0debb7adc29972a0bc2a5dc2;p=debian%2Famanda diff --git a/client-src/versionsuffix.c b/client-src/versionsuffix.c index 4d60148..d9e2ecb 100644 --- a/client-src/versionsuffix.c +++ b/client-src/versionsuffix.c @@ -24,19 +24,37 @@ * file named AUTHORS, in the root directory of this distribution. */ /* - * $Id: versionsuffix.c,v 1.6.12.1 2005/09/20 21:31:52 jrjackson Exp $ + * $Id: versionsuffix.c,v 1.9 2006/05/25 01:47:11 johnfranks Exp $ * * prints the (possibly empty) suffix appended to amanda program names */ #include "amanda.h" #include "version.h" +#include "util.h" -int main() +int main(int argc, char **argv); + +int +main( + int argc, + char ** argv) { + (void)argc; /* Quiet unused parameter warning */ + (void)argv; /* Quiet unused parameter warning */ + + /* + * Configure program for internationalization: + * 1) Only set the message locale for now. + * 2) Set textdomain for all amanda related programs to "amanda" + * We don't want to be forced to support dozens of message catalogs. + */ + setlocale(LC_MESSAGES, "C"); + textdomain("amanda"); + safe_fd(-1, 0); set_pname("versionsuffix"); - printf("%s\n", versionsuffix()); + g_printf("%s\n", versionsuffix()); return 0; }