[111377] trunk/base/src/pextlib1.0/system.c
toby at macports.org
toby at macports.org
Thu Sep 19 13:27:22 PDT 2013
Revision: 111377
https://trac.macports.org/changeset/111377
Author: toby at macports.org
Date: 2013-09-19 13:27:22 -0700 (Thu, 19 Sep 2013)
Log Message:
-----------
fix warnings
Modified Paths:
--------------
trunk/base/src/pextlib1.0/system.c
Modified: trunk/base/src/pextlib1.0/system.c
===================================================================
--- trunk/base/src/pextlib1.0/system.c 2013-09-19 20:09:26 UTC (rev 111376)
+++ trunk/base/src/pextlib1.0/system.c 2013-09-19 20:27:22 UTC (rev 111377)
@@ -173,7 +173,7 @@
case -1: /* error */
Tcl_SetResult(interp, strerror(errno), TCL_STATIC);
return TCL_ERROR;
- break;
+ /*NOTREACHED*/
case 0: /* child */
close(fdset[0]);
@@ -189,7 +189,7 @@
}
/* change scheduling priority if requested */
if (oniceval != INT_MAX) {
- if (setpriority(PRIO_PROCESS, getpid(), oniceval) != 0) {
+ if (setpriority(PRIO_PROCESS, (id_t)getpid(), oniceval) != 0) {
/* ignore failure, just continue */
}
}
@@ -226,7 +226,7 @@
execve("/bin/sh", args, environ);
}
_exit(1);
- break;
+ /*NOTREACHED*/
default: /* parent */
break;
}
@@ -241,7 +241,7 @@
if (pdes) {
while ((buf = fgetln(pdes, &linelen)) != NULL) {
char *sbuf;
- int slen;
+ size_t slen;
/*
* Allocate enough space to insert a terminating
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130919/ace9a959/attachment.html>
More information about the macports-changes
mailing list