summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-29 18:03:09 +0200
committerDan McGee <dan@archlinux.org>2007-04-29 18:03:09 +0200
commita58e17a1d7a9901bb32277c9aed7edded3501767 (patch)
tree25209ab6fcfb551da7d55ee9a1e8e0c235511e2d /lib/libalpm/util.h
parentea327cab843397a5727a8a0dd560aab8e0975df6 (diff)
downloadpacman-a58e17a1d7a9901bb32277c9aed7edded3501767.tar.gz
pacman-a58e17a1d7a9901bb32277c9aed7edded3501767.tar.xz
Remove STRNCPY macro from libalpm
Replaced calls to the STRNCPY macro with the actual strncpy function, and pacman passes all pactests. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r--lib/libalpm/util.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h
index c4131795..0584b73b 100644
--- a/lib/libalpm/util.h
+++ b/lib/libalpm/util.h
@@ -34,11 +34,6 @@
#define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0)
-#define STRNCPY(s1, s2, len) do { \
- strncpy(s1, s2, (len)-1); \
- s1[(len)-1] = 0; \
-} while(0)
-
#define ARCHIVE_EXTRACT_FLAGS ARCHIVE_EXTRACT_OWNER | ARCHIVE_EXTRACT_PERM | ARCHIVE_EXTRACT_TIME
/* define _() as shortcut for gettext() */
@@ -62,6 +57,7 @@ int _alpm_unpack(const char *archive, const char *prefix, const char *fn);
int _alpm_rmrf(const char *path);
int _alpm_logaction(unsigned short usesyslog, FILE *f, const char *str);
int _alpm_ldconfig(const char *root);
+/* TODO wtf? this can't be right */
#ifdef _ALPM_TRANS_H
int _alpm_runscriptlet(const char *root, const char *installfn,
const char *script, const char *ver,