X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Finit.c;h=aba7e5e0981205002f1c0ca71586163a8bca5fcc;hb=1896d37bfaae78bfa0e6ee3e3fb19b0a92bb1adb;hp=dde97d773062d8438e7c3c972a821740f275949d;hpb=5f9d02f8396f090b406090427bb74a0997525ac1;p=deb_libnfs.git diff --git a/lib/init.c b/lib/init.c index dde97d7..aba7e5e 100644 --- a/lib/init.c +++ b/lib/init.c @@ -35,7 +35,6 @@ struct rpc_context *rpc_init_context(void) rpc = malloc(sizeof(struct rpc_context)); if (rpc == NULL) { - printf("Failed to allocate rpc context\n"); return NULL; } bzero(rpc, sizeof(struct rpc_context)); @@ -43,14 +42,12 @@ struct rpc_context *rpc_init_context(void) rpc->encodebuflen = 65536; rpc->encodebuf = malloc(rpc->encodebuflen); if (rpc->encodebuf == NULL) { - printf("Failed to allocate a buffer for rpc encoding\n"); free(rpc); return NULL; } rpc->auth = authunix_create_default(); if (rpc->auth == NULL) { - printf("failed to create authunix\n"); free(rpc->encodebuf); free(rpc); return NULL;