summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/log.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-03-16 20:50:57 +0100
committerAurelien Foret <aurelien@archlinux.org>2005-03-16 20:50:57 +0100
commitc583f03886f262138330249cfeef94ab2dd228a8 (patch)
tree740b63a2964e01fde23d6a51418c39a790ebb8c3 /lib/libalpm/log.h
parentfac045a958ab853f028a79c32353cb0c51a41d63 (diff)
downloadpacman-c583f03886f262138330249cfeef94ab2dd228a8.tar.gz
pacman-c583f03886f262138330249cfeef94ab2dd228a8.tar.xz
Added LOG_STR_LEN define to avoid hardcoded length for log strings
Diffstat (limited to 'lib/libalpm/log.h')
-rw-r--r--lib/libalpm/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/log.h b/lib/libalpm/log.h
index 852202ab..e9a9a4f9 100644
--- a/lib/libalpm/log.h
+++ b/lib/libalpm/log.h
@@ -21,6 +21,8 @@
#ifndef _ALPM_LOG_H
#define _ALPM_LOG_H
+#define LOG_STR_LEN 256
+
typedef void (*alpm_cb_log)(unsigned short, char *);
void _alpm_log(unsigned char flag, char *fmt, ...);