Skip to content

Commit

Permalink
Fix _most_ of the compiler warnings
Browse files Browse the repository at this point in the history
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
linvjw committed Apr 8, 2015
1 parent 7c9a650 commit 8be419e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions unzoo.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,13 @@
*H
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <sys/stat.h>
#include <sys/types.h>
#include <utime.h>


/****************************************************************************
**
Expand Down Expand Up @@ -617,8 +622,8 @@ char Cmd [256];
** members with the correct time as stored in the archive.
*/
#ifdef SYS_IS_UNIX
unsigned int Secs [2];
#define SETF_TIME(patl,secs) (Secs[0]=Secs[1]=(secs),!utime((patl),Secs))
struct utimbuf Secs;
#define SETF_TIME(patl,secs) (Secs.actime=Secs.modtime=(secs),!utime((patl),&Secs))
#endif
#ifdef SYS_IS_DOS_DJGPP
unsigned long Secs [2];
Expand Down Expand Up @@ -1469,7 +1474,7 @@ struct {
int DescReadArch ()
{
/* read the text at the beginning */
BlckReadArch(Descript.text,20L); Descript.text[20] = '\0';
BlckReadArch(Descript.text,20L); Descript.text[19] = '\0';

/* try to read the magic words */
if ( (Descript.magic = WordReadArch()) != (unsigned long)0xfdc4a7dcL )
Expand Down

0 comments on commit 8be419e

Please sign in to comment.