X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fnetwork.c;h=ab8cfb751a021989721074486f8c87791415e280;hp=8da57d9cb0bec897e812be76ff8ec96f90d28774;hb=a574c7558e33f172b6dfee53ee8df9e59c84c7b5;hpb=5835b1eec5a1f1e463c0762c510c6643fa2bff62 diff --git a/utils/mount/network.c b/utils/mount/network.c index 8da57d9..ab8cfb7 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -106,12 +106,13 @@ int nfs_gethostbyname(const char *hostname, struct sockaddr_in *saddr) saddr->sin_family = AF_INET; if (!inet_aton(hostname, &saddr->sin_addr)) { if ((hp = gethostbyname(hostname)) == NULL) { - nfs_error(_("mount: can't get address for %s\n"), - hostname); + nfs_error(_("%s: can't get address for %s\n"), + progname, hostname); return 0; } else { if (hp->h_length > sizeof(*saddr)) { - nfs_error(_("mount: got bad hp->h_length\n")); + nfs_error(_("%s: got bad hp->h_length\n"), + progname); hp->h_length = sizeof(*saddr); } memcpy(&saddr->sin_addr, hp->h_addr, hp->h_length);