commit - 17ab44fc2721b335826150fa3f37bf7cc2e15ced
commit + d28f26dbb261d0995b727dfdf94a6abe0e17b4c7
blob - d356f3a2120edd4b06d59d14c6a2247818c08fff
blob + 5b48a3156ed803d52be7e69ab78168cacd1aac18
--- kamirepl.c
+++ kamirepl.c
return;
}
- memcpy(&path, d, sizeof(path));
- d += sizeof(path);
- path = le64toh(path);
+ type = *d++;
memcpy(&vers, d, sizeof(vers));
d += sizeof(vers);
vers = le64toh(vers);
- type = *d;
+ memcpy(&path, d, sizeof(path));
+ d += sizeof(path);
+ path = le64toh(path);
printf("qid{path=%"PRIu64" version=%"PRIu32" type=0x%x\"%s\"}",
path, vers, type, pp_qid_type(type));