Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created February 12, 2014 07:50
Show Gist options
  • Save kyleterry/8951545 to your computer and use it in GitHub Desktop.
Save kyleterry/8951545 to your computer and use it in GitHub Desktop.
<<<<<<< HEAD
check(fread(tmp_key, sizeof(char), KEY_SIZE, fd) > 0, "Error reading");
check(fread(&value_size, sizeof(size_t), 1, fd) > 0, "Error reading");
=======
fread_res = fread(tmp_key, sizeof(char), KEY_SIZE, fd);
if (!fread_res)
ol_log_msg(LOG_WARN, "Could not read key.\n");
fread_res = fread(&value_size, sizeof(size_t), 1, fd);
if (!fread_res)
ol_log_msg(LOG_WARN, "Could not read value_size.\n");
>>>>>>> master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment