Don't use perror after ldbm_store() failure; errno is not set then.

This commit is contained in:
Hallvard Furuseth 1998-11-20 12:15:05 +00:00
parent 22fb527939
commit aec88f98bd

View file

@ -173,7 +173,8 @@ main( int argc, char **argv )
data.dsize = strlen( buf ) + 1;
if ( ldbm_store( db->dbc_db, key, data,
LDBM_INSERT ) != 0 ) {
perror( "id2entry ldbm_store" );
fputs("id2entry ldbm_store failed\n",
stderr);
exit( 1 );
}
}