X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fnetrc.c;h=158ef39f34ab9eb15c8a7669f801c8bd2d17f2e8;hp=15cf0a68845ddd90bea630fdfecaea216f11737f;hb=908d7a4bcee5adb7d4768499282cc83075d0332e;hpb=277e840a0f8e3ec8800cfe7407fe3c16000bc622 diff --git a/src/netrc.c b/src/netrc.c index 15cf0a68..158ef39f 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -164,7 +164,7 @@ read_whole_line (FILE *fp) { int length = 0; int bufsize = 81; - char *line = (char *)xmalloc (bufsize); + char *line = xmalloc (bufsize); while (fgets (line + length, bufsize - length, fp)) { @@ -220,7 +220,7 @@ maybe_add_to_list (acc_t **newentry, acc_t **list) } /* Allocate a new acc_t structure. */ - a = (acc_t *)xmalloc (sizeof (acc_t)); + a = xmalloc (sizeof (acc_t)); } /* Zero the structure, so that it is ready to use. */