diff options
author | Phil Blundell <philb@gnu.org> | 1998-08-10 20:48:01 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 1998-08-10 20:48:01 +0000 |
commit | 979144702297a301a79a5190d43d47b2fe345696 (patch) | |
tree | eaa612eb22168c5827861c630c91695dcd790719 /lib/loopback.c | |
parent | Fix uninitialised variable (was causing problems on SPARC apparently) (diff) | |
download | net-tools-979144702297a301a79a5190d43d47b2fe345696.tar.gz net-tools-979144702297a301a79a5190d43d47b2fe345696.tar.bz2 net-tools-979144702297a301a79a5190d43d47b2fe345696.zip |
Replace outdated NLS support with GNU gettext (patch from
Arnaldo Carvalho de Melo <acme@conectiva.com.br>). This
touches virtually every file but the changes are fairly
superficial.
Please check I haven't broken your favourite AF/hardware
type during the conversion.
Diffstat (limited to 'lib/loopback.c')
-rw-r--r-- | lib/loopback.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/loopback.c b/lib/loopback.c index ae2b04b..8c9f4c1 100644 --- a/lib/loopback.c +++ b/lib/loopback.c @@ -6,6 +6,9 @@ * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> * Copyright 1993 MicroWalt Corporation * + * Modifications: + * 1998-07-01 - Arnaldo Carvalho de Melo - GNU gettext instead of catgets + * * This program is free software; you can redistribute it * and/or modify it under the terms of the GNU General * Public License as published by the Free Software @@ -25,9 +28,7 @@ #include <unistd.h> #include "net-support.h" #include "pathnames.h" -#define EXTERN -#include "net-locale.h" - +#include "intl.h" /* Display an UNSPEC address. */ static char * @@ -53,7 +54,7 @@ pr_sunspec(struct sockaddr *sap) static char buf[64]; if (sap->sa_family == 0xFFFF || sap->sa_family == 0) - return(NLS_CATBUFF (catfd, loopbackSet, loopback_none, "[NONE SET]", buf, 64)); + return strncpy (buf, _("[NONE SET]"), sizeof (buf)); return(pr_unspec(sap->sa_data)); } |