- Timestamp:
- Sep 23, 2010, 6:05:38 AM (14 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r290 r293 1559 1559 /* Get the local hostname (FQDN) 1560 1560 */ 1561 static char * sh_tolower (char * s) 1562 { 1563 char * ret = s; 1564 if (s) 1565 { 1566 for (; *s; ++s) 1567 { 1568 *s = tolower((unsigned char) *s); 1569 } 1570 } 1571 return ret; 1572 } 1573 1574 1561 1575 #include <sys/socket.h> 1562 1576 … … 1648 1662 { 1649 1663 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1664 sh_tolower (sh.host.name); 1650 1665 } 1651 1666 SH_MUTEX_UNLOCK(mutex_resolv); … … 1657 1672 hostname); 1658 1673 sl_strlcpy (sh.host.name, hostname, SH_PATHBUF); 1674 sh_tolower (sh.host.name); 1659 1675 } 1660 1676 … … 1727 1743 { 1728 1744 sl_strlcpy (sh.host.name, sh_unix_h_name(he1), SH_PATHBUF); 1745 sh_tolower (sh.host.name); 1729 1746 } 1730 1747 SH_MUTEX_UNLOCK(mutex_resolv); -
trunk/src/sh_utils.c
r290 r293 796 796 SL_RETURN( 0, _("sh_util_sigtype")); 797 797 } 798 798 799 799 800 char * sh_util_siggen (char * hexkey,
Note:
See TracChangeset
for help on using the changeset viewer.