commit-inetutils
[Top][All Lists]
Advanced

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

[SCM] GNU Inetutils branch, master, updated. release_1_5-223-ge1cc9b2


From: Simon Josefsson
Subject: [SCM] GNU Inetutils branch, master, updated. release_1_5-223-ge1cc9b2
Date: Fri, 13 Nov 2009 17:43:57 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=e1cc9b2ef35660642ea5a89ff8dfaeee31d2b612

The branch, master has been updated
       via  e1cc9b2ef35660642ea5a89ff8dfaeee31d2b612 (commit)
      from  315907c800aa606f747ecf82fb04ff36b03a993a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e1cc9b2ef35660642ea5a89ff8dfaeee31d2b612
Author: Simon Josefsson <address@hidden>
Date:   Fri Nov 13 18:43:49 2009 +0100

    Fix syntax-check sc_cast_of_x_alloc_return_value.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |    7 +++++++
 hostname/hostname.c |    4 ++--
 ping/ping_common.c  |    2 +-
 rsh/rsh.c           |    2 +-
 4 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9a034c6..7b78e9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-11-13  Simon Josefsson  <address@hidden>
 
+       * hostname/hostname.c (get_aliases, get_ip_addresses): Fix
+       syntax-check sc_cast_of_x_alloc_return_value.
+       * ping/ping_common.c (init_data_buffer): Likewise.
+       * rsh/rsh.c (main): Likewise.
+
+2009-11-13  Simon Josefsson  <address@hidden>
+
        * rshd/rshd.c (doit): Fix syntax-check
        sc_cast_of_alloca_return_value.
        * ftpd/ftpd.c (send_file_list): Likewise.
diff --git a/hostname/hostname.c b/hostname/hostname.c
index 9f399f3..875bc11 100644
--- a/hostname/hostname.c
+++ b/hostname/hostname.c
@@ -238,7 +238,7 @@ get_aliases (const char *const host_name)
   unsigned int size = 256;
   struct hostent *ht;
 
-  aliases = (char *) xmalloc (sizeof (char) * size);
+  aliases = xmalloc (sizeof (char) * size);
   aliases[0] = '\0';
 
   ht = gethostbyname (host_name);
@@ -294,7 +294,7 @@ get_ip_addresses (const char *const host_name)
   unsigned int size = 256;
   struct hostent *ht;
 
-  addresses = (char *) xmalloc (sizeof (char) * size);
+  addresses = xmalloc (sizeof (char) * size);
   addresses[0] = '\0';
 
   ht = gethostbyname (host_name);
diff --git a/ping/ping_common.c b/ping/ping_common.c
index 7021c4e..4206d52 100644
--- a/ping/ping_common.c
+++ b/ping/ping_common.c
@@ -64,7 +64,7 @@ init_data_buffer (u_char * pat, int len)
   if (data_length == 0)
     return;
 
-  data_buffer = (u_char *) xmalloc (data_length);
+  data_buffer = xmalloc (data_length);
 
   if (pat)
     {
diff --git a/rsh/rsh.c b/rsh/rsh.c
index cc36cc1..5ee5c61 100644
--- a/rsh/rsh.c
+++ b/rsh/rsh.c
@@ -362,7 +362,7 @@ try_connect:
          int i;
          char *term;
 
-         term = (char *) xmalloc (strlen (args) + 4);
+         term = xmalloc (strlen (args) + 4);
          strcpy (term, "-x ");
          strcat (term, args);
 


hooks/post-receive
-- 
GNU Inetutils 




reply via email to

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