chiark / gitweb /
fix typo, thanks to kees master
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jul 2013 18:31:53 +0000 (19:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 26 Jul 2013 18:31:53 +0000 (19:31 +0100)
map-unshare.c

index 5af8996..d1f1c48 100644 (file)
@@ -65,7 +65,7 @@ void map_unshare(void) {
     fputs("mmap ",stderr);
     void *mapped;
     mapped = mmap(startp, length, prot, MAP_SHARED|MAP_FIXED, fileno(copyf), 0);
-    assert(mapped = startp);
+    assert(mapped == startp);
     fclose(copyf);
 
     fputs("done.\n",stderr);