aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-03-17 17:57:28 -0500
committerRob Landley <rob@landley.net>2013-03-17 17:57:28 -0500
commite5f3a0b8bad332d46fa963759a9f946e9913cc17 (patch)
treed33c4965229107199681173d5482d3d6e132b164 /lib
parent33cdec57f9b72eab4a15c8caa09631717fa64c31 (diff)
downloadtoybox-e5f3a0b8bad332d46fa963759a9f946e9913cc17.tar.gz
Remove unused min/max macros.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/lib.h b/lib/lib.h
index d3d15b81..1b1899b0 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -17,7 +17,8 @@ ssize_t getline(char **lineptr, size_t *n, FILE *stream);
// llist.c
// All these list types can be handled by the same code because first element
-// is always next pointer, so next = (mytype *)&struct.
+// is always next pointer, so next = (mytype *)&struct. (The payloads are
+// named differently to catch using the wrong type early.)
struct string_list {
struct string_list *next;
@@ -176,9 +177,5 @@ int update_password(char *filename, char* username, char* encrypted);
// du helper functions
char* make_human_readable(unsigned long long size, unsigned long unit);
-// useful tools
-#define min(a,b) (a)<(b) ? (a) : (b)
-#define max(a,b) (a)>(b) ? (a) : (b)
-
// cut helper functions
unsigned long get_int_value(const char *numstr, unsigned lowrange, unsigned highrange);