]> git.ozlabs.org Git - ccan/commitdiff
tdb2: fix an error message misspelling.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 11:18:27 +0000 (20:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 11:18:27 +0000 (20:48 +0930)
ccan/tdb2/open.c

index c6fd9a090ecf3078bb4135e6b0651403d8379978..7cbac0afa0c3cf39d7b2122c89b03e784ab5a574 100644 (file)
@@ -174,7 +174,7 @@ static enum TDB_ERROR tdb_new_file(struct tdb_context *tdb)
        tdb->file = malloc(sizeof(*tdb->file));
        if (!tdb->file)
                return tdb_logerr(tdb, TDB_ERR_OOM, TDB_LOG_ERROR,
        tdb->file = malloc(sizeof(*tdb->file));
        if (!tdb->file)
                return tdb_logerr(tdb, TDB_ERR_OOM, TDB_LOG_ERROR,
-                                 "tdb_open: could alloc tdb_file structure");
+                                 "tdb_open: cannot alloc tdb_file structure");
        tdb->file->num_lockrecs = 0;
        tdb->file->lockrecs = NULL;
        tdb->file->allrecord_lock.count = 0;
        tdb->file->num_lockrecs = 0;
        tdb->file->lockrecs = NULL;
        tdb->file->allrecord_lock.count = 0;