summaryrefslogtreecommitdiff
path: root/udev_utils.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-05 06:50:09 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:48:48 -0700
commit03fd7a3ad3438c7ae4525215ac58c3d94133cc35 (patch)
tree3dd0b83ee14b02b58027601ae1668b2821555929 /udev_utils.h
parent51015808dae77026ef6aae369be272289547fe72 (diff)
[PATCH] replace weird defines by real code
Diffstat (limited to 'udev_utils.h')
-rw-r--r--udev_utils.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/udev_utils.h b/udev_utils.h
index 2f2c2497cb..3bb1b25362 100644
--- a/udev_utils.h
+++ b/udev_utils.h
@@ -48,24 +48,6 @@ do { \
strncat(to, from, maxsize - strlen(to)-1); \
} while (0)
-#define strintcat(to, i) \
-do { \
- to[sizeof(to)-1] = '\0'; \
- snprintf((to) + strlen(to), sizeof(to) - strlen(to)-1, "%u", i); \
-} while (0)
-
-#define strintcatmax(to, i, maxsize) \
-do { \
- to[maxsize-1] = '\0'; \
- snprintf((to) + strlen(to), maxsize - strlen(to)-1, "%u", i); \
-} while (0)
-
-#define foreach_strpart(str, separator, pos, len) \
- for(pos = str, len = 0; \
- (pos) < ((str) + strlen(str)); \
- pos = pos + len + strspn(pos, separator), len = strcspn(pos, separator)) \
- if (len > 0)
-
#ifdef asmlinkage
# undef asmlinkage
#endif
@@ -73,7 +55,7 @@ do { \
# define asmlinkage __attribute__((regparm(0)))
#endif
#ifndef asmlinkage
-# define asmlinkage /* nothing */
+# define asmlinkage
#endif
struct name_entry {