Skip to content

Instantly share code, notes, and snippets.

View GamesTrap's full-sized avatar
🏠
Working from home

Jan Schürkamp GamesTrap

🏠
Working from home
View GitHub Profile
@GamesTrap
GamesTrap / cnijfilter-mg3100_3.60-5_build_fixes.patch
Created July 15, 2024 18:09
Additional fixes for the AUR cnijfilter-mg3100 package to compile with gcc 14.1.1
--- cnijfilter-source-3.60-1/cngpij/cngpij/bjcups.c
+++ cnijfilter-source-3.60-1/cngpij/cngpij/bjcups.c
@@ -692,8 +692,8 @@ static short getDeviceURI( char *pDestName, char *pDeviceURI, short bufSize)
else {
pRequest = ippNew();
- pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
- pRequest->request.op.request_id = 1;
+ ippSetOperation(pRequest, CUPS_GET_PRINTERS);
+ ippSetRequestId(pRequest, 1);