bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash minor code cleanup for 'long' in cmdline.c


From: Paul Eggert
Subject: bash minor code cleanup for 'long' in cmdline.c
Date: Thu, 12 Apr 2001 14:30:08 -0700 (PDT)

Configuration Information [Automatically generated, do not change]:
Machine: sparc
OS: solaris2.8
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='sparc' 
-DCONF_OSTYPE='solaris2.8' -DCONF_MACHTYPE='sparc-sun-solaris2.8' 
-DCONF_VENDOR='sun' -DSHELL  -DHAVE_CONFIG_H   -I.  -I. -I./include -I./lib 
-I/opt/reb/include -g -O2 -Wall
uname output: SunOS shade.twinsun.com 5.8 Generic_108528-06 sun4u sparc 
SUNW,Ultra-1
Machine Type: sparc-sun-solaris2.8

Bash Version: 2.05
Patch Level: 0
Release Status: release

Description:
        This patch doesn't fix any bugs; it's just a minor coding cleanup.

        add_host_name uses 'long' where the value is actually of type size_t.

Repeat-By:

Fix:
2001-04-12  Paul Eggert  <eggert@shade.twinsun.com>

        * bashline.c (add_host_name): Use size_t for a size, not long.

===================================================================
RCS file: RCS/bashline.c,v
retrieving revision 2.5
retrieving revision 2.5.0.1
diff -pu -r2.5 -r2.5.0.1
--- bashline.c  2001/03/06 18:36:07     2.5
+++ bashline.c  2001/04/12 21:25:50     2.5.0.1
@@ -457,7 +457,7 @@ static void
 add_host_name (name)
      char *name;
 {
-  long size;
+  size_t size;
 
   if (hostname_list_length + 2 > hostname_list_size)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]