Skip to content

Commit

Permalink
* hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
Browse files Browse the repository at this point in the history
	Reported by Jeff Bailey <[email protected]>.

	Reported by Jeff Bailey <[email protected]>.
  • Loading branch information
Roland McGrath committed Dec 2, 2001
1 parent 5ca3ec0 commit 4f90436
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
2001-12-02 Roland McGrath <[email protected]>

* hurd/hurd.h (__hurd_fail): Add `break;' to silence new gcc-3 warning.
Reported by Jeff Bailey <[email protected]>.

* hurd/hurd.h (_hurd_umask): Remove volatile qualifier from decl.
Reported by Jeff Bailey <[email protected]>.

* mach/Makefile ($(objpfx)mach-syscalls.mk): Pass $(CFLAGS) to $(CC).
* mach/Machrules ($(objpfx)%.udeps static pattern rule): Likewise.
Expand Down
3 changes: 3 additions & 0 deletions hurd/hurd.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ __hurd_fail (error_t err)
case KERN_NO_SPACE:
err = ENOMEM;
break;

case KERN_INVALID_ARGUMENT:
err = EINVAL;
break;

case 0:
return 0;

default:
break;
}

errno = err;
Expand Down

0 comments on commit 4f90436

Please sign in to comment.