Commit 730c718b4e7767bb2d4da775f58804d8cacbc530

Stefan Sperling 2018-06-21T18:25:45

introduce GOT_ERR_RANGE

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/include/got_error.h b/include/got_error.h
index 146ee74..d559f4d 100644
--- a/include/got_error.h
+++ b/include/got_error.h
@@ -60,6 +60,7 @@
 #define GOT_ERR_BAD_OBJ_ID	44
 #define GOT_ERR_ITER_NEED_MORE	45
 #define GOT_ERR_ITER_COMPLETED	46
+#define GOT_ERR_RANGE		47
 
 static const struct got_error {
 	int code;
@@ -109,6 +110,7 @@ static const struct got_error {
 	{ GOT_ERR_BAD_OBJ_ID,	"bad object id" },
 	{ GOT_ERR_ITER_NEED_MORE,"more items needed to continue iteration" },
 	{ GOT_ERR_ITER_COMPLETED,"iteration completed" },
+	{ GOT_ERR_RANGE,	"value out of range" },
 };
 
 /*