From 35daff80ad5e762ab31d83256344b3a0b6e6f2b7 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 16 Aug 2005 14:02:15 +0000 Subject: Relevant BUGIDs: none Purpose of commit: new feature Commit summary: --------------- 2. round of automake/autoconf/libtool changes --- libpam_misc/.cvsignore | 2 ++ libpam_misc/xstrdup.c | 31 ------------------------------- 2 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 libpam_misc/xstrdup.c (limited to 'libpam_misc') diff --git a/libpam_misc/.cvsignore b/libpam_misc/.cvsignore index b6cfd742..abf21675 100644 --- a/libpam_misc/.cvsignore +++ b/libpam_misc/.cvsignore @@ -7,3 +7,5 @@ misc_conv.o xstrdup.o dynamic static +Makefile +Makefile.in diff --git a/libpam_misc/xstrdup.c b/libpam_misc/xstrdup.c deleted file mode 100644 index 6a4ca6f7..00000000 --- a/libpam_misc/xstrdup.c +++ /dev/null @@ -1,31 +0,0 @@ -/* $Id$ */ - -#include -#include -#include - -/* - * Safe duplication of character strings. "Paranoid"; don't leave - * evidence of old token around for later stack analysis. - */ - -char *xstrdup(const char *x) -{ - register char *new=NULL; - - if (x != NULL) { - register int i; - - for (i=0; x[i]; ++i); /* length of string */ - if ((new = malloc(++i)) == NULL) { - i = 0; - } else { - while (i-- > 0) { - new[i] = x[i]; - } - } - x = NULL; - } - - return new; /* return the duplicate or NULL on error */ -} -- cgit v1.2.3