X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fprogname.c;h=2465748175070f01e0a6d02faaca29f06e849f89;hb=cd19e83484e2c0ff9fd68e7439dd97128c6a2703;hp=2e82ac9ed6cc1b07b4eff0825452c8ae64213dcc;hpb=3941f59cb92c262e98b3e554baf4b8921113e1d1;p=gnulib.git diff --git a/lib/progname.c b/lib/progname.c index 2e82ac9ed..246574817 100644 --- a/lib/progname.c +++ b/lib/progname.c @@ -1,5 +1,5 @@ /* Program name management. - Copyright (C) 2001-2003, 2005-2009 Free Software Foundation, Inc. + Copyright (C) 2001-2003, 2005-2011 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -52,7 +52,7 @@ set_program_name (const char *argv0) { /* It's a bug in the invoking program. Help diagnosing it. */ fputs ("A NULL argv[0] was passed through an exec system call.\n", - stderr); + stderr); abort (); } @@ -62,14 +62,14 @@ set_program_name (const char *argv0) { argv0 = base; if (strncmp (base, "lt-", 3) == 0) - { - argv0 = base + 3; - /* On glibc systems, remove the "lt-" prefix from the variable - program_invocation_short_name. */ + { + argv0 = base + 3; + /* On glibc systems, remove the "lt-" prefix from the variable + program_invocation_short_name. */ #if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME - program_invocation_short_name = (char *) argv0; + program_invocation_short_name = (char *) argv0; #endif - } + } } /* But don't strip off a leading / in general, because when the user