Check-in Number:
|
4261 | |
Date: |
2001-Aug-01 14:05:07 (local)
2001-Aug-01 12:05:07 (UTC) |
User: | simons |
Branch: | callback-semantic-rewrite |
Comment: |
Rewrote callback for the new semantics. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/xds/regression-tests/xds-engine-restart.c 1.1.2.1 -> 1.1.2.2
--- xds-engine-restart.c 2001/08/01 11:27:20 1.1.2.1
+++ xds-engine-restart.c 2001/08/01 12:05:07 1.1.2.2
@@ -68,7 +68,11 @@
printf("The varadic argument is not what the engine expected!\n");
exit(1);
}
- return 64;
+ if (buffer_size < 64)
+ return XDS_ERR_OVERFLOW;
+ else
+ *used_buffer_size = 64;
+ return XDS_OK;
}
int main()
|
|
ossp-pkg/xds/regression-tests/xds-setbuffer.c 1.3.2.1 -> 1.3.2.2
--- xds-setbuffer.c 2001/08/01 11:27:20 1.3.2.1
+++ xds-setbuffer.c 2001/08/01 12:05:30 1.3.2.2
@@ -39,9 +39,12 @@
assert(buffer_size != 0);
assert(used_buffer_size != NULL);
assert(args != NULL);
- if (buffer_size >= 64)
- memset(buffer, 'a', 64);
- return 64;
+ if (buffer_size < 64)
+ return XDS_ERR_OVERFLOW;
+ else
+ *used_buffer_size = 64;
+ memset(buffer, 'a', 64);
+ return XDS_OK;
}
int main()
|
|