put_invalid.c   put_invalid.c 
/* Writing data to an invalid dirfile should fail cleanly */ /* Writing data to an invalid dirfile should fail cleanly */
#include "test.h" #include "test.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#include <string.h> #include <string.h>
#include <unistd.h>
int main(void) int main(void)
{ {
const char* filedir = __TEST__ "dirfile"; const char* filedir = __TEST__ "dirfile";
char c[8]; char c[8];
int r = 0; int r = 0;
DIRFILE* D = gd_open(filedir, GD_RDWR | GD_UNENCODED); DIRFILE* D = gd_open(filedir, GD_RDWR | GD_UNENCODED);
size_t n = gd_putdata(D, "data", 5, 0, 1, 0, GD_UINT8, c); size_t n = gd_putdata(D, "data", 5, 0, 1, 0, GD_UINT8, c);
int error = gd_error(D); int error = gd_error(D);
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/