X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fmount%2Fnfsumount.c;h=1decf07d7debd2bc2fdf857c9275082b90b73f0c;hb=f12ed63e95dec929d6893b16983233d2940a889c;hp=381ca6e344e0bdf13d21a1760a651597f8777325;hpb=03187a3cf1995b487c291ea8bc746a9e29e1c2f4;p=nfs-utils.git diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index 381ca6e..1decf07 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -190,7 +190,7 @@ int del_mtab(const char *spec, const char *node) /* * Returns 1 if everything went well, else 0. */ -int _nfsumount(const char *spec, const char *opts) +int _nfsumount(const char *spec, char *opts) { char *hostname; char *dirname; @@ -252,7 +252,7 @@ int _nfsumount(const char *spec, const char *opts) goto out_bad; return nfs_call_umount(&mnt_server, &dirname); out_bad: - printf("%s: %s: not found or not mounted\n", progname, spec); + fprintf(stderr, "%s: %s: not found or not mounted\n", progname, spec); return 0; }