* getopt() return value does not fit into char

* fetch prototypes
This commit is contained in:
naddy 2018-04-24 19:17:57 +00:00
parent 92c785c9a0
commit dc0bceac53
3 changed files with 32 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.5 2017/06/14 20:43:53 schwarze Exp $
# $OpenBSD: Makefile,v 1.6 2018/04/24 19:17:57 naddy Exp $
COMMENT= utility for mp3 wrapping
DISTNAME= mp3wrap-0.5-src
PKGNAME= ${DISTNAME:S/-src//}
REVISION = 1
REVISION = 2
CATEGORIES= audio

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-mp3wrap_c,v 1.1 2018/04/24 19:17:57 naddy Exp $
Index: mp3wrap.c
--- mp3wrap.c.orig
+++ mp3wrap.c
@@ -70,8 +70,8 @@ int main (int argc, char *argv[]) {
FILE *file_output, *file_input;
unsigned long splitpoints[MAXNUMFILE+1], begin=0, end, len=0, crc, fcrc;
unsigned char filename[512], *wrapindex, c, ext[512];
- char option, *ptr;
- int i = 0, j = 0, files, oldfiles = 0, indexsize=0, id3offset=0;
+ char *ptr;
+ int i = 0, j = 0, files, option, oldfiles = 0, indexsize=0, id3offset=0;
short optoffset = 0, addoption = 0, listoption = 0, verboption = 0, ismp3wrap = 0;
printf (NAME" Version "VERSION" "DATE". See README and COPYING for more!\n");

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-wrap_c,v 1.1 2018/04/24 19:17:57 naddy Exp $
Index: wrap.c
--- wrap.c.orig
+++ wrap.c
@@ -25,7 +25,7 @@
#include <stdio.h>
#include <stdlib.h>
-#include <strings.h>
+#include <string.h>
#include "wrap.h"
#include "mp3wrap.h"