Permalink
Browse files

Remove duplicated prototype declarations of strdup().

These are part of the standard library and hence should be
accessed via `#include <string.h>` when needed.
  • Loading branch information...
1 parent 43344e6 commit 451fd5f5a2cb24807962ea97dc49d848fbae3b2e @jonm committed Oct 3, 2015
Showing with 0 additions and 25 deletions.
  1. +0 −2 src/act.other.c
  2. +0 −1 src/fight.c
  3. +0 −1 src/fight.old.c
  4. +0 −2 src/handler.c
  5. +0 −4 src/magic3.c
  6. +0 −2 src/protos.h
  7. +0 −1 src/spells2.c
  8. +0 −12 src/utility.c
View
@@ -153,8 +153,6 @@ void do_title(struct char_data *ch, char *argument, int cmd)
{
char buf[512];
- char *strdup(char *source);
-
if (IS_NPC(ch) || !ch->desc)
return;
View
@@ -340,7 +340,6 @@ void make_corpse(struct char_data *ch)
char buf[MAX_INPUT_LENGTH];
int i, ADeadBody=FALSE;
- char *strdup(char *source);
struct obj_data *create_money( int amount );
CREATE(corpse, struct obj_data, 1);
View
@@ -300,7 +300,6 @@ void make_corpse(struct char_data *ch)
char buf[MAX_INPUT_LENGTH];
int i, ADeadBody=FALSE;
- char *strdup(char *source);
struct obj_data *create_money( int amount );
CREATE(corpse, struct obj_data, 1);
View
@@ -1784,8 +1784,6 @@ struct obj_data *create_money( int amount )
struct extra_descr_data *new_descr;
char buf[80];
- char *strdup(char *str);
-
if(amount<=0) {
log("ERROR: Try to create negative money.");
assert(0);
View
@@ -19,10 +19,6 @@ extern struct descriptor_data *descriptor_list;
#define STATE(d) ((d)->connected)
#define IS_IMMUNE(ch, bit) (IS_SET((ch)->M_immune, bit))
-/* Extern procedures */
-
-char *strdup(char *source);
-
/*
druid spells
*/
View
@@ -18,8 +18,6 @@
#include "wizlist.h"
#include "parser.h"
-char *strdup(char *source);
-
/* From Heap.c */
void SmartStrCpy(char *s1, const char *s2);
View
@@ -29,7 +29,6 @@ void update_pos( struct char_data *victim );
void clone_char(struct char_data *ch);
bool saves_spell(struct char_data *ch, sh_int spell);
void add_follower(struct char_data *ch, struct char_data *victim);
-char *strdup(char *str);
char in_group(struct char_data *ch1, struct char_data *ch2);
void ChangeWeather( int change);
void raw_unlock_door( struct char_data *ch, struct room_direction_data *exitp,
View
@@ -297,18 +297,6 @@ int dice(int number, int size)
}
-/* Causing memory leak, but is a standard c function, so commenting out. -DM
-
-
-char *strdup(char *source)
-{
- char *new;
-
- CREATE(new, char, strlen(source)+1);
- return(strcpy(new, source));
-}
-*/
-
int scan_number(char *text, int *rval)
{
int length;

0 comments on commit 451fd5f

Please sign in to comment.