aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dset/dset.c2
-rw-r--r--sbin/i386/ft/ft.c2
-rw-r--r--sbin/restore/dirs.c4
-rw-r--r--sbin/restore/restore.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dset/dset.c b/sbin/dset/dset.c
index 06d71638b77f..2428289bcc18 100644
--- a/sbin/dset/dset.c
+++ b/sbin/dset/dset.c
@@ -207,7 +207,7 @@ main(ac, av)
fatal("kvmread", NULL);
dev_found = 0;
- while(pos_t!=NULL) {
+ while(pos_t!=0) {
if (kvm_read(kd, pos_t, &buf1, sizeof(struct isa_device)) < 0)
fatal("kvmread", NULL);
diff --git a/sbin/i386/ft/ft.c b/sbin/i386/ft/ft.c
index b1dbbb2c00b2..3396eb4ef5cc 100644
--- a/sbin/i386/ft/ft.c
+++ b/sbin/i386/ft/ft.c
@@ -53,7 +53,7 @@ QIC_Geom geo; /* tape geometry */
int tvno = 1; /* tape volume number */
int tvlast; /* TRUE if last volume in set */
long tvsize = 0; /* tape volume size in bytes */
-long tvtime = NULL; /* tape change time */
+long tvtime = 0; /* tape change time */
char *tvnote = ""; /* tape note */
int doretension = 0; /* TRUE if we should retension tape */
diff --git a/sbin/restore/dirs.c b/sbin/restore/dirs.c
index f698e9353e59..78a5ff3b4b31 100644
--- a/sbin/restore/dirs.c
+++ b/sbin/restore/dirs.c
@@ -35,7 +35,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: dirs.c,v 1.9 1997/06/18 06:28:46 charnier Exp $
*/
#ifndef lint
@@ -302,7 +302,7 @@ pathsearch(pathname)
while (*path == '/')
path++;
dp = NULL;
- while ((name = strsep(&path, "/")) != NULL && *name != NULL) {
+ while ((name = strsep(&path, "/")) != NULL && *name != '\0') {
if ((dp = searchdir(ino, name)) == NULL)
return (NULL);
ino = dp->d_ino;
diff --git a/sbin/restore/restore.c b/sbin/restore/restore.c
index 4da97f144a85..f2d526af79e3 100644
--- a/sbin/restore/restore.c
+++ b/sbin/restore/restore.c
@@ -817,7 +817,7 @@ checkrestore()
ep->e_flags &= ~KEEP;
if (ep->e_type == NODE)
ep->e_flags &= ~(NEW|EXISTED);
- if (ep->e_flags != NULL)
+ if (ep->e_flags != 0)
badentry(ep, "incomplete operations");
}
}