gauche-cdb-0.3.1-undefined-reference.diff 709 B

1234567891011121314151617181920212223
  1. --- Gauche-cdb-0.3.1.orig/cdb.scm
  2. +++ Gauche-cdb-0.3.1/cdb.scm
  3. @@ -60,7 +60,7 @@
  4. (unless (slot-bound? self 'path)
  5. (error "path must be set to open cdb database"))
  6. (when (cdb-file-of self)
  7. - (errorf "cdb ~S already opened" cdb))
  8. + (errorf "cdb ~s already opened" (cdb-file-of self)))
  9. (let ((path (slot-ref self 'path))
  10. (rwmode (slot-ref self 'rw-mode)))
  11. (case rwmode
  12. --- Gauche-cdb-0.3.1.orig/cdb.stub
  13. +++ Gauche-cdb-0.3.1/cdb.stub
  14. @@ -69,7 +69,7 @@
  15. static void cdb_finalize(ScmObj obj, void *data)
  16. {
  17. - ScmCdb *cdb = SCM_CDB(cdb);
  18. + ScmCdb *cdb = SCM_CDB(obj);
  19. switch (cdb->status) {
  20. case OPEN_QUERY:
  21. cdb_free(&cdb->cdb); close(cdb_fileno(&cdb->cdb));