aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2009-08-10 07:52:50 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2009-08-10 07:52:50 +0200
commitd2aba2774478bf64b3c6034104eba2b53d9fd442 (patch)
treea988b9288e2c05b3f5c354713f83279b7ad78cc5 /openbsc/include
parentbc621c2e1ee5c66dd87041d1b3cce2dbf1646c97 (diff)
vty: Rename define to not clash with talloc's version of it
Diffstat (limited to 'openbsc/include')
-rw-r--r--openbsc/include/vty/vty.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/include/vty/vty.h b/openbsc/include/vty/vty.h
index 4a1a6ff08..0441fc5f7 100644
--- a/openbsc/include/vty/vty.h
+++ b/openbsc/include/vty/vty.h
@@ -6,9 +6,9 @@
/* GCC have printf type attribute check. */
#ifdef __GNUC__
-#define PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b)))
+#define VTY_PRINTF_ATTRIBUTE(a,b) __attribute__ ((__format__ (__printf__, a, b)))
#else
-#define PRINTF_ATTRIBUTE(a,b)
+#define VTY_PRINTF_ATTRIBUTE(a,b)
#endif /* __GNUC__ */
/* Does the I/O error indicate that the operation should be retried later? */
@@ -134,7 +134,7 @@ void vty_init_vtysh (void);
void vty_reset (void);
struct vty *vty_new (void);
struct vty *vty_create (int vty_sock, void *priv);
-int vty_out (struct vty *, const char *, ...) PRINTF_ATTRIBUTE(2, 3);
+int vty_out (struct vty *, const char *, ...) VTY_PRINTF_ATTRIBUTE(2, 3);
int vty_out_newline(struct vty *);
int vty_read(struct vty *vty);
//void vty_time_print (struct vty *, int);