mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Revert part of previous patch: Don't use __progname.
This commit is contained in:
parent
faa4958c39
commit
e8abeed581
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26435
1 changed files with 2 additions and 4 deletions
|
@ -30,7 +30,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: hostname.c,v 1.6 1997/03/28 15:24:20 imp Exp $
|
* $Id: hostname.c,v 1.7 1997/06/03 06:21:45 charnier Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
@ -51,8 +51,6 @@ static char const sccsid[] = "@(#)hostname.c 8.1 (Berkeley) 5/31/93";
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
extern char *__progname;
|
|
||||||
|
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
int
|
int
|
||||||
|
@ -96,6 +94,6 @@ void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
|
|
||||||
(void)fprintf(stderr, "usage: %s [-s] [name-of-host]\n", __progname);
|
(void)fprintf(stderr, "usage: hostname [-s] [name-of-host]\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue