altering to match book source code so that I can reliably spot line ref errors

cat-town
Dan Buch 13 years ago
parent c64e1beeaa
commit 791f3b1327

@ -104,7 +104,7 @@ void Database_create(struct Connection *conn)
void Database_set(struct Connection *conn, int id, const char *name, const char *email) void Database_set(struct Connection *conn, int id, const char *name, const char *email)
{ {
struct Address *addr = &conn->db->rows[id]; struct Address *addr = &conn->db->rows[id];
if(addr->set) die("Already set, delete it first."); if(addr->set) die("Already set, delete it first");
addr->set = 1; addr->set = 1;
// WARNING: bug, read the "How To Break It" and fix this // WARNING: bug, read the "How To Break It" and fix this
@ -196,3 +196,4 @@ int main(int argc, char *argv[])
return 0; return 0;
} }

Loading…
Cancel
Save